Commit 798888a0 by Jakub Jelinek Committed by Jakub Jelinek

tsan-dg.exp (tsan_init): Try to run a trivial program, if it fails don't run any tsan tests.

	* lib/tsan-dg.exp (tsan_init): Try to run a trivial program,
	if it fails don't run any tsan tests.

From-SVN: r207337
parent 81e5eca8
2014-01-31 Jakub Jelinek <jakub@redhat.com>
* lib/tsan-dg.exp (tsan_init): Try to run a trivial program,
if it fails don't run any tsan tests.
2014-01-31 Marek Polacek <polacek@redhat.com> 2014-01-31 Marek Polacek <polacek@redhat.com>
PR c/59963 PR c/59963
......
...@@ -93,7 +93,11 @@ proc tsan_init { args } { ...@@ -93,7 +93,11 @@ proc tsan_init { args } {
} }
} }
if { $link_flags != "" } { if { $link_flags != "" } {
return 1 if [check_runtime_nocache tsan_works {
int main () { return 0; }
} "-fPIE -pie -fsanitize=thread -g"] {
return 1
}
} }
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment