* lib/tsan-dg.exp (tsan_init): Try to run a trivial program,
if it fails don't run any tsan tests.
From-SVN: r207337
+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>
PR c/59963
}
}
if { $link_flags != "" } {
- return 1
+ if [check_runtime_nocache tsan_works {
+ int main () { return 0; }
+ } "-fPIE -pie -fsanitize=thread -g"] {
+ return 1
+ }
}
return 0
}