[llvm-commits] [compiler-rt] r157392 - in /compiler-rt/trunk/lib/tsan: output_tests/simple_stack2.cc rtl_tests/tsan_mop.cc
Dmitry Vyukov
dvyukov at google.com
Thu May 24 07:55:12 PDT 2012
Author: dvyukov
Date: Thu May 24 09:55:12 2012
New Revision: 157392
URL: http://llvm.org/viewvc/llvm-project?rev=157392&view=rev
Log:
tsan: compilation of tests with newest clang
Modified:
compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc
compiler-rt/trunk/lib/tsan/rtl_tests/tsan_mop.cc
Modified: compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc?rev=157392&r1=157391&r2=157392&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc (original)
+++ compiler-rt/trunk/lib/tsan/output_tests/simple_stack2.cc Thu May 24 09:55:12 2012
@@ -9,16 +9,16 @@
}
void __attribute__((noinline)) bar1() {
- volatile int tmp = 42; (void)tmp;
+ volatile int tmp = 42; int tmp2 = tmp; (void)tmp2;
foo1();
}
void __attribute__((noinline)) foo2() {
- volatile int v = Global; (void)v;
+ volatile int v = Global; int v2 = v; (void)v2;
}
void __attribute__((noinline)) bar2() {
- volatile int tmp = 42; (void)tmp;
+ volatile int tmp = 42; int tmp2 = tmp; (void)tmp2;
foo2();
}
Modified: compiler-rt/trunk/lib/tsan/rtl_tests/tsan_mop.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl_tests/tsan_mop.cc?rev=157392&r1=157391&r2=157392&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl_tests/tsan_mop.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl_tests/tsan_mop.cc Thu May 24 09:55:12 2012
@@ -194,12 +194,14 @@
static void foo() {
volatile int x = 42;
- (void)x;
+ int x2 = x;
+ (void)x2;
}
static void bar() {
volatile int x = 43;
- (void)x;
+ int x2 = x;
+ (void)x2;
}
TEST(ThreadSanitizer, ReportDeadThread) {
More information about the llvm-commits
mailing list