[llvm-commits] [compiler-rt] r157391 - in /compiler-rt/trunk/lib/tsan/rtl: tsan_defs.h tsan_rtl.h
Dmitry Vyukov
dvyukov at google.com
Thu May 24 07:50:33 PDT 2012
Author: dvyukov
Date: Thu May 24 09:50:33 2012
New Revision: 157391
URL: http://llvm.org/viewvc/llvm-project?rev=157391&view=rev
Log:
tsan: fix compilation with newest clang
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h?rev=157391&r1=157390&r2=157391&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_defs.h Thu May 24 09:50:33 2012
@@ -123,27 +123,24 @@
static inline void USED build_consistency() {
#if TSAN_DEBUG
- void(*volatile cfg)() = &build_consistency_debug;
+ build_consistency_debug();
#else
- void(*volatile cfg)() = &build_consistency_release;
+ build_consistency_release();
#endif
#if TSAN_COLLECT_STATS
- void(*volatile stats)() = &build_consistency_stats;
+ build_consistency_stats();
#else
- void(*volatile stats)() = &build_consistency_nostats;
+ build_consistency_nostats();
#endif
#if TSAN_SHADOW_COUNT == 1
- void(*volatile shadow)() = &build_consistency_shadow1;
+ build_consistency_shadow1();
#elif TSAN_SHADOW_COUNT == 2
- void(*volatile shadow)() = &build_consistency_shadow2;
+ build_consistency_shadow2();
#elif TSAN_SHADOW_COUNT == 4
- void(*volatile shadow)() = &build_consistency_shadow4;
+ build_consistency_shadow4();
#else
- void(*volatile shadow)() = &build_consistency_shadow8;
+ build_consistency_shadow8();
#endif
- (void)cfg;
- (void)stats;
- (void)shadow;
}
template<typename T>
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h?rev=157391&r1=157390&r2=157391&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h Thu May 24 09:50:33 2012
@@ -39,11 +39,6 @@
void Printf(const char *format, ...) FORMAT(1, 2);
uptr Snprintf(char *buffer, uptr length, const char *format, ...) FORMAT(3, 4);
-inline void NOINLINE breakhere() {
- volatile int x = 42;
- (void)x;
-}
-
// FastState (from most significant bit):
// unused : 1
// tid : kTidBits
More information about the llvm-commits
mailing list