[compiler-rt] 55afd5b - [sanitizer] Try to fix the test on powerpc bot

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 22:54:11 PDT 2024


Author: Vitaly Buka
Date: 2024-09-12T22:54:00-07:00
New Revision: 55afd5b9e88f63b6018978f93df5419d6f4adbd3

URL: https://github.com/llvm/llvm-project/commit/55afd5b9e88f63b6018978f93df5419d6f4adbd3
DIFF: https://github.com/llvm/llvm-project/commit/55afd5b9e88f63b6018978f93df5419d6f4adbd3.diff

LOG: [sanitizer] Try to fix the test on powerpc bot

It silently fails with tsan.
https://lab.llvm.org/buildbot/#/builders/72/builds/3257

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c
index 4ec129f9f844e3..2f88c22d19dbf9 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/tls_get_addr.c
@@ -18,7 +18,8 @@
 #  include <stdlib.h>
 
 // CHECK-COUNT-2: __sanitizer_get_dtls_size:
-size_t __sanitizer_get_dtls_size(const void *ptr) {
+size_t __sanitizer_get_dtls_size(const void *ptr)
+    __attribute__((disable_sanitizer_instrumentation)) {
   fprintf(stderr, "__sanitizer_get_dtls_size: %p\n", ptr);
   return 0;
 }


        


More information about the llvm-commits mailing list