[PATCH] [Tsan] Do not declare std_suppressions when not used
Viktor Kutuzov
vkutuzov at accesssoftek.com
Thu Mar 12 06:03:05 PDT 2015
Hi kcc, samsonov, dvyukov,
Otherwise, the build fail with the "variable defined, but not used" kind of warning on FreeBSD.
http://reviews.llvm.org/D8288
Files:
lib/tsan/rtl/tsan_suppressions.cc
Index: lib/tsan/rtl/tsan_suppressions.cc
===================================================================
--- lib/tsan/rtl/tsan_suppressions.cc
+++ 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.21822.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150312/8ab56352/attachment.bin>
More information about the llvm-commits
mailing list