Skip to content

Commit feb5b70

Browse files
committed
FT-582 Remove remaining artifacts from the ICC days
1 parent 1a34a13 commit feb5b70

File tree

5 files changed

+2
-32
lines changed

5 files changed

+2
-32
lines changed

ft/tests/ftloader-test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static void test_merge_internal (int a[], int na, int b[], int nb, bool dups) {
186186
static void test_merge (void) {
187187
{
188188
int avals[]={1,2,3,4,5};
189-
int *bvals = NULL; //icc won't let us use a zero-sized array explicitly or by [] = {} construction.
189+
int *bvals = NULL;
190190
test_merge_internal(avals, 5, bvals, 0, false);
191191
test_merge_internal(bvals, 0, avals, 5, false);
192192
}

portability/toku_portability.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,6 @@ extern "C" {
188188

189189
// Deprecated functions.
190190
#if !defined(TOKU_ALLOW_DEPRECATED)
191-
# if defined(__ICL) || defined(__ICC) // Intel Compiler
192-
# pragma deprecated (creat, fstat, stat, getpid, syscall, sysconf, mkdir, strdup)
193-
//# pragma poison off_t
194-
//# pragma poison pthread_attr_t pthread_t
195-
//# pragma poison pthread_mutexattr_t pthread_mutex_t
196-
//# pragma poison pthread_condattr_t pthread_cond_t
197-
//# pragma poison pthread_rwlockattr_t pthread_rwlock_t
198-
//# pragma poison timespec
199-
# ifndef DONT_DEPRECATE_WRITES
200-
# pragma poison write pwrite
201-
# endif
202-
# ifndef DONT_DEPRECATE_MALLOC
203-
# pragma deprecated (malloc, free, realloc)
204-
# endif
205-
# ifndef DONT_DEPRECATE_ERRNO
206-
# pragma deprecated (errno)
207-
# endif
208-
# pragma poison dup2
209-
# pragma poison _dup2
210-
# else
211191
int creat(const char *pathname, mode_t mode) __attribute__((__deprecated__));
212192
int fstat(int fd, struct stat *buf) __attribute__((__deprecated__));
213193
int stat(const char *path, struct stat *buf) __attribute__((__deprecated__));
@@ -281,7 +261,6 @@ extern void *realloc(void*, size_t) __THROW __attribute__((__deprecat
281261
#pragma GCC poison __sync_synchronize
282262
#pragma GCC poison __sync_lock_test_and_set
283263
#pragma GCC poison __sync_release
284-
# endif
285264
#endif
286265

287266
#if defined(__cplusplus)

scripts/run.fractal.tree.tests.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,16 @@ set(all_opts
8585
set(rel_opts
8686
${all_opts}
8787
-DCMAKE_BUILD_TYPE=Release
88-
-DINTEL_CC=ON
8988
-DUSE_BDB=ON
9089
)
9190
set(dbg_opts
9291
${all_opts}
9392
-DCMAKE_BUILD_TYPE=Debug
94-
-DINTEL_CC=ON
9593
-DUSE_BDB=ON
9694
)
9795
set(cov_opts
9896
${all_opts}
9997
-DCMAKE_BUILD_TYPE=Debug
100-
-DINTEL_CC=OFF
10198
-DUSE_GCOV=ON
10299
)
103100

src/tests/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
160160
endforeach(av)
161161
endforeach(ov)
162162

163-
if (NOT (CMAKE_SYSTEM_NAME MATCHES Darwin OR
164-
(CMAKE_CXX_COMPILER_ID STREQUAL Intel AND
165-
CMAKE_BUILD_TYPE STREQUAL Release)
166-
OR USE_GCOV))
163+
if (NOT (CMAKE_SYSTEM_NAME MATCHES Darwin OR USE_GCOV))
167164
declare_custom_tests(helgrind1.tdb)
168165
add_test(NAME ydb/helgrind_helgrind1.tdb
169166
COMMAND valgrind --quiet --tool=helgrind --error-exitcode=1 --log-file=helgrind1.tdb.deleteme $<TARGET_FILE:helgrind1.tdb>)

util/tests/test_partitioned_counter.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ static inline void increment (void) {
201201
head->prev = cp;
202202
}
203203
head = cp;
204-
#ifdef __INTEL_COMPILER
205-
__memory_barrier(); // for some reason I don't understand, ICC needs a memory barrier here. -Bradley
206-
#endif
207204
cp->counter = 0;
208205
cp->inited = true;
209206
cp->myid = idcounter++;

0 commit comments

Comments
 (0)