[compiler-rt] 1bd8e87 - Disable __sancov_lowest_stack on Windows.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 16:40:13 PDT 2023


Author: Peter Collingbourne
Date: 2023-03-20T16:40:06-07:00
New Revision: 1bd8e87e1b44d23c78f43caa6d419210954821b7

URL: https://github.com/llvm/llvm-project/commit/1bd8e87e1b44d23c78f43caa6d419210954821b7
DIFF: https://github.com/llvm/llvm-project/commit/1bd8e87e1b44d23c78f43caa6d419210954821b7.diff

LOG: Disable __sancov_lowest_stack on Windows.

Should fix Windows buildbot:
https://lab.llvm.org/buildbot/#/builders/127/builds/45401

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
index f2dd6b227ccd3..ce4326967180d 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
@@ -284,7 +284,10 @@ SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_cov_pcs_init, const uptr* beg,
 // E.g., -fsanitize=fuzzer-no-link
 // FIXME: Update Apple deployment target so that thread_local is always
 // supported, and remove the #if.
-#if !SANITIZER_APPLE
+// FIXME: Figure out how this should work on Windows, exported thread_local
+// symbols are not supported:
+// "data with thread storage duration may not have dll interface"
+#if !SANITIZER_APPLE && !SANITIZER_WINDOWS
 SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
 thread_local uptr __sancov_lowest_stack;
 #endif


        


More information about the llvm-commits mailing list