[compiler-rt] r232074 - [Tsan] Do not declare std_suppressions when not used
Viktor Kutuzov
vkutuzov at accesssoftek.com
Thu Mar 12 11:14:43 PDT 2015
Author: vkutuzov
Date: Thu Mar 12 13:14:42 2015
New Revision: 232074
URL: http://llvm.org/viewvc/llvm-project?rev=232074&view=rev
Log:
[Tsan] Do not declare std_suppressions when not used
Differential Revision: http://reviews.llvm.org/D8288
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc?rev=232074&r1=232073&r2=232074&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_suppressions.cc Thu Mar 12 13:14:42 2015
@@ -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 @@ static const char *const std_suppression
"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;
}
More information about the llvm-commits
mailing list