[compiler-rt] r268382 - tsan: update tsan_analyze to what tip clang generates

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 06:59:41 PDT 2016


Author: dvyukov
Date: Tue May  3 08:59:41 2016
New Revision: 268382

URL: http://llvm.org/viewvc/llvm-project?rev=268382&view=rev
Log:
tsan: update tsan_analyze to what tip clang generates

We used to depend on host gcc. But some distributions got
new gcc recently which broke the check. Generally, we can't
depend that an arbitrary host gcc generates something stable.

Switch to clang.
This has an additional advantage of catching regressions in
clang codegen.


Modified:
    compiler-rt/trunk/lib/tsan/check_analyze.sh

Modified: compiler-rt/trunk/lib/tsan/check_analyze.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/check_analyze.sh?rev=268382&r1=268381&r2=268382&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/check_analyze.sh (original)
+++ compiler-rt/trunk/lib/tsan/check_analyze.sh Tue May  3 08:59:41 2016
@@ -32,25 +32,13 @@ for f in write1; do
   check $f pop 2
 done
 
-for f in write2 write4; do
-  check $f rsp 1
-  check $f push 4
-  check $f pop 4
-done
-
-for f in write8; do
+for f in write2 write4 write8; do
   check $f rsp 1
   check $f push 3
   check $f pop 3
 done
 
-for f in read1; do
-  check $f rsp 1
-  check $f push 6
-  check $f pop 6
-done
-
-for f in read2 read4 read8; do
+for f in read1 read2 read4 read8; do
   check $f rsp 1
   check $f push 5
   check $f pop 5




More information about the llvm-commits mailing list