Message ID | 20140131113446.GL892@tucnak.redhat.com |
---|---|
State | New |
Headers | show |
--- gcc/testsuite/lib/tsan-dg.exp.jj 2014-01-03 11:40:40.000000000 +0100 +++ gcc/testsuite/lib/tsan-dg.exp 2014-01-31 12:15:06.659406282 +0100 @@ -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 }