diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-10-05 17:59:39 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2018-10-05 17:59:39 +0000 |
commit | 8b3842fc996a73bb6c8c3e2756b2a9ac79508159 (patch) | |
tree | 95d178a8787c81ffbf446c4c90970beadc104513 | |
parent | f09fc3bc126f6be0f02eb3ff984dd80926d9520c (diff) | |
download | bcm5719-llvm-8b3842fc996a73bb6c8c3e2756b2a9ac79508159.tar.gz bcm5719-llvm-8b3842fc996a73bb6c8c3e2756b2a9ac79508159.zip |
[OpenMP] Convert KMP_DYNAMIC_LIB to a 0 or 1 guard everywhere
llvm-svn: 343869
-rw-r--r-- | openmp/runtime/src/kmp_ftn_cdecl.cpp | 2 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_runtime.cpp | 8 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_version.cpp | 2 | ||||
-rw-r--r-- | openmp/runtime/src/z_Windows_NT_util.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/openmp/runtime/src/kmp_ftn_cdecl.cpp b/openmp/runtime/src/kmp_ftn_cdecl.cpp index ec8d77ee411..702fd0d628c 100644 --- a/openmp/runtime/src/kmp_ftn_cdecl.cpp +++ b/openmp/runtime/src/kmp_ftn_cdecl.cpp @@ -15,7 +15,7 @@ #include "kmp_affinity.h" #if KMP_OS_WINDOWS -#if defined KMP_WIN_CDECL || !defined KMP_DYNAMIC_LIB +#if defined KMP_WIN_CDECL || !KMP_DYNAMIC_LIB #define KMP_FTN_ENTRIES KMP_FTN_UPPER #endif #elif KMP_OS_UNIX diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp index 522e4f54e77..01dd4b9601c 100644 --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/runtime/src/kmp_runtime.cpp @@ -552,7 +552,7 @@ static void __kmp_fini_allocator() { /* ------------------------------------------------------------------------ */ -#ifdef KMP_DYNAMIC_LIB +#if KMP_DYNAMIC_LIB #if KMP_OS_WINDOWS static void __kmp_reset_lock(kmp_bootstrap_lock_t *lck) { @@ -3543,7 +3543,7 @@ static int __kmp_expand_threads(int nNeed) { // resizing __kmp_threads does not need additional protection if foreign // threads are present -#if KMP_OS_WINDOWS && !defined KMP_DYNAMIC_LIB +#if KMP_OS_WINDOWS && !KMP_DYNAMIC_LIB /* only for Windows static library */ /* reclaim array entries for root threads that are already dead */ added = __kmp_reclaim_dead_roots(); @@ -6194,7 +6194,7 @@ void __kmp_internal_end_thread(int gtid_req) { return; } } -#if defined KMP_DYNAMIC_LIB +#if KMP_DYNAMIC_LIB // AC: lets not shutdown the Linux* OS dynamic library at the exit of uber // thread, because we will better shutdown later in the library destructor. // The reason of this change is performance problem when non-openmp thread in @@ -6644,7 +6644,7 @@ static void __kmp_do_serial_initialize(void) { __kmp_register_atfork(); #endif -#if !defined KMP_DYNAMIC_LIB +#if !KMP_DYNAMIC_LIB { /* Invoke the exit handler when the program finishes, only for static library. For dynamic library, we already have _fini and DllMain. */ diff --git a/openmp/runtime/src/kmp_version.cpp b/openmp/runtime/src/kmp_version.cpp index 4e60237a4ba..e138e869208 100644 --- a/openmp/runtime/src/kmp_version.cpp +++ b/openmp/runtime/src/kmp_version.cpp @@ -76,7 +76,7 @@ #endif // KMP_LIB_TYPE // Detect link type (static, dynamic). -#ifdef KMP_DYNAMIC_LIB +#if KMP_DYNAMIC_LIB #define KMP_LINK_TYPE "dynamic" #else #define KMP_LINK_TYPE "static" diff --git a/openmp/runtime/src/z_Windows_NT_util.cpp b/openmp/runtime/src/z_Windows_NT_util.cpp index 28ad36e5ef7..e8ed6603b4b 100644 --- a/openmp/runtime/src/z_Windows_NT_util.cpp +++ b/openmp/runtime/src/z_Windows_NT_util.cpp @@ -620,7 +620,7 @@ void __kmp_runtime_initialize(void) { #endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */ /* Set up minimum number of threads to switch to TLS gtid */ -#if KMP_OS_WINDOWS && !defined KMP_DYNAMIC_LIB +#if KMP_OS_WINDOWS && !KMP_DYNAMIC_LIB // Windows* OS, static library. /* New thread may use stack space previously used by another thread, currently terminated. On Windows* OS, in case of static linking, we do not |