summaryrefslogtreecommitdiffstats
path: root/libunwind/src/Unwind-sjlj.c
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-01-18 20:31:12 +0000
committerMartin Storsjo <martin@martin.st>2019-01-18 20:31:12 +0000
commite563e08d8f5bb1aeebb717b412f9b75e08febe0f (patch)
tree24a4aa25f1c4d7c1efc148609128fa3726dce418 /libunwind/src/Unwind-sjlj.c
parent85af701e857229f87542650682ae993f224ced0b (diff)
downloadbcm5719-llvm-e563e08d8f5bb1aeebb717b412f9b75e08febe0f.tar.gz
bcm5719-llvm-e563e08d8f5bb1aeebb717b412f9b75e08febe0f.zip
[SjLj] Don't use __declspec(thread) in MinGW mode
GCC and Clang in MinGW mode don't support __declspec(thread), which after expanding macros ends up as __attribute__((thread)). Use the GCC specific attribute __thread instead (the next one in the chain of alternatives). Differential Revision: https://reviews.llvm.org/D56905 llvm-svn: 351587
Diffstat (limited to 'libunwind/src/Unwind-sjlj.c')
-rw-r--r--libunwind/src/Unwind-sjlj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/src/Unwind-sjlj.c b/libunwind/src/Unwind-sjlj.c
index 90cac3f8c76..37901caa0e8 100644
--- a/libunwind/src/Unwind-sjlj.c
+++ b/libunwind/src/Unwind-sjlj.c
@@ -52,7 +52,7 @@ struct _Unwind_FunctionContext {
#else
# if __STDC_VERSION__ >= 201112L
# define _LIBUNWIND_THREAD_LOCAL _Thread_local
-# elif defined(_WIN32)
+# elif defined(_MSC_VER)
# define _LIBUNWIND_THREAD_LOCAL __declspec(thread)
# elif defined(__GNUC__) || defined(__clang__)
# define _LIBUNWIND_THREAD_LOCAL __thread
OpenPOWER on IntegriCloud