[PATCH] [Tsan] Do not declare std_suppressions when not used

Phabricator reviews at reviews.llvm.org
Thu Mar 12 11:17:18 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8288

Files:
  compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc

Index: compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
===================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
@@ -21,6 +21,7 @@
 #include "tsan_mman.h"
 #include "tsan_platform.h"
 
+#ifndef SANITIZER_GO
 // Suppressions for true/false positives in standard libraries.
 static const char *const std_suppressions =
 // Libstdc++ 4.4 has data races in std::string.
@@ -33,7 +34,6 @@
 "race:std::_Sp_counted_ptr_inplace<std::thread::_Impl\n";
 
 // Can be overriden in frontend.
-#ifndef SANITIZER_GO
 extern "C" const char *WEAK __tsan_default_suppressions() {
   return 0;
 }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8288.21856.patch
Type: text/x-patch
Size: 704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150312/207e165d/attachment.bin>


More information about the llvm-commits mailing list