summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-31 11:30:46 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-31 11:30:46 +0000
commit02699c6fd764d01a17d714ffe7afb73fde2edec5 (patch)
tree9ad9587b605912ae3e0f3046dcfbef532a40a424 /gcc/testsuite/lib
parentec761d5a73219a67a605f9102269df416f647093 (diff)
downloadppe42-gcc-02699c6fd764d01a17d714ffe7afb73fde2edec5.tar.gz
ppe42-gcc-02699c6fd764d01a17d714ffe7afb73fde2edec5.zip
* lib/tsan-dg.exp (tsan_init): Try to run a trivial program,
if it fails don't run any tsan tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/tsan-dg.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/tsan-dg.exp b/gcc/testsuite/lib/tsan-dg.exp
index 8fc2c308dbb..2274f066dff 100644
--- a/gcc/testsuite/lib/tsan-dg.exp
+++ b/gcc/testsuite/lib/tsan-dg.exp
@@ -93,7 +93,11 @@ proc tsan_init { args } {
}
}
if { $link_flags != "" } {
- return 1
+ if [check_runtime_nocache tsan_works {
+ int main () { return 0; }
+ } "-fPIE -pie -fsanitize=thread -g"] {
+ return 1
+ }
}
return 0
}
OpenPOWER on IntegriCloud