Skip to content

Commit 40039ac

Browse files
committedNov 7, 2017
Cleanup version symbol macros and attributes/declspecs
1) Get rid of xaliasify, xexpand and xversionify for KMP_EXPAND_NAME and KMP_VERSION_SYMBOL. KMP_VERSION_SYMBOL is a combination of xaliasify and xversionify. 2) Put all attribute and __declspec definitions in kmp_os.h Differential Revision: https://reviews.llvm.org/D39516 llvm-svn: 317636
1 parent 6c301b6 commit 40039ac

11 files changed

+375
-523
lines changed
 

‎openmp/CREDITS.txt

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ beautification by scripts. The fields are: name (N), email (E), web-address
88
(W), PGP key ID and fingerprint (P), description (D), and snail-mail address
99
(S).
1010

11+
N: Adam Azarchs
12+
W: 10xgenomics.com
13+
D: Bug fix for lock code
14+
1115
N: Carlo Bertolli
1216
W: http://ibm.com
1317
D: IBM contributor to PowerPC support in CMake files and elsewhere.

‎openmp/runtime/src/kmp.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -2896,13 +2896,7 @@ extern int __kmp_gtid_mode; /* Method of getting gtid, values:
28962896
extern int
28972897
__kmp_adjust_gtid_mode; /* If true, adjust method based on #threads */
28982898
#ifdef KMP_TDATA_GTID
2899-
#if KMP_OS_WINDOWS
2900-
extern __declspec(
2901-
thread) int __kmp_gtid; /* This thread's gtid, if __kmp_gtid_mode == 3 */
2902-
#else
2903-
extern __thread int __kmp_gtid;
2904-
#endif /* KMP_OS_WINDOWS - workaround because Intel(R) Many Integrated Core \
2905-
compiler 20110316 doesn't accept __declspec */
2899+
extern KMP_THREAD_LOCAL int __kmp_gtid;
29062900
#endif
29072901
extern int __kmp_tls_gtid_min; /* #threads below which use sp search for gtid */
29082902
extern int __kmp_foreign_tp; // If true, separate TP var for each foreign thread

0 commit comments

Comments
 (0)
Please sign in to comment.