[compiler-rt] r312037 - Re-enable stack depth instrumentation on Windows.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 29 14:15:33 PDT 2017


Author: morehouse
Date: Tue Aug 29 14:15:33 2017
New Revision: 312037

URL: http://llvm.org/viewvc/llvm-project?rev=312037&view=rev
Log:
Re-enable stack depth instrumentation on Windows.

Specified tls_model attribute properly. Should compile on Windows
now.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=312037&r1=312036&r2=312037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Tue Aug 29 14:15:33 2017
@@ -36,11 +36,11 @@
 #endif
 
 // Mac handles TLS differently
-#if SANITIZER_MAC || SANITIZER_WINDOWS
+#if SANITIZER_MAC
 # define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE
 #else
 # define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE \
-    __attribute((tls_model("initial-exec"))) thread_local
+    __attribute__((tls_model("initial-exec"))) thread_local
 #endif
 
 //--------------------------- WEAK FUNCTIONS ---------------------------------//




More information about the llvm-commits mailing list