[PATCH] D56905: [libunwind] [SjLj] Don't use __declspec(thread) in MinGW mode

Martin Storsjö via Phabricator reviews at reviews.llvm.org
Fri Jan 18 12:35:10 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL351587: [SjLj] Don't use __declspec(thread) in MinGW mode (authored by mstorsjo, committed by ).
Herald added subscribers: llvm-commits, christof.

Changed prior to commit:
  https://reviews.llvm.org/D56905?vs=182501&id=182584#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56905/new/

https://reviews.llvm.org/D56905

Files:
  libunwind/trunk/src/Unwind-sjlj.c


Index: libunwind/trunk/src/Unwind-sjlj.c
===================================================================
--- libunwind/trunk/src/Unwind-sjlj.c
+++ libunwind/trunk/src/Unwind-sjlj.c
@@ -52,7 +52,7 @@
 #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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56905.182584.patch
Type: text/x-patch
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190118/71533f93/attachment.bin>


More information about the libcxx-commits mailing list