diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-09-18 22:40:59 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2006-09-19 08:40:59 +1000 |
commit | 9b1f6e91a17e3b50b29dd06dbe5b7f71f4aa7769 (patch) | |
tree | c6c6cc18ee53c6ad8b73b165350afc5cea5b5dae | |
parent | 71e9f91522224a31fd9fc7b5345bf87e9222b24a (diff) | |
download | gcc-9b1f6e91a17e3b50b29dd06dbe5b7f71f4aa7769.zip gcc-9b1f6e91a17e3b50b29dd06dbe5b7f71f4aa7769.tar.gz gcc-9b1f6e91a17e3b50b29dd06dbe5b7f71f4aa7769.tar.bz2 |
target-supports.exp (check_effective_target_tls): Compile test stubs using ${tool}_target_compile, not just target_compile.
* lib/target-supports.exp (check_effective_target_tls): Compile
test stubs using ${tool}_target_compile, not just target_compile.
(check_effective_target_tls_runtime): Likewise.
From-SVN: r117041
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d65af41..5a9cf9f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2006-09-19 Ben Elliston <bje@au.ibm.com> + * lib/target-supports.exp (check_effective_target_tls): Compile + test stubs using ${tool}_target_compile, not just target_compile. + (check_effective_target_tls_runtime): Likewise. + +2006-09-19 Ben Elliston <bje@au.ibm.com> + * gcc.c-torture/compile/20030405-1.x: Remove. * g++.old-deja/g++.pt/const2.C (main): Examine p to prevent an diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index bf8f7e7..90639ce 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -390,6 +390,7 @@ proc check_effective_target_pcc_bitfield_type_matters { } { proc check_effective_target_tls {} { global et_tls_saved + global tool if [info exists et_tls_saved] { verbose "check_effective_target_tls: using cached result" 2 @@ -406,7 +407,7 @@ proc check_effective_target_tls {} { # Test for thread-local data supported by the platform. set comp_output \ - [target_compile $src $asm assembly ""] + [${tool}_target_compile $src $asm assembly ""] file delete $src if { [string match "*not supported*" $comp_output] } { set et_tls_saved 0 @@ -423,6 +424,7 @@ proc check_effective_target_tls {} { proc check_effective_target_tls_runtime {} { global et_tls_runtime_saved + global tool if [info exists et_tls_runtime_saved] { verbose "check_effective_target_tls_runtime: using cached result" 2 @@ -439,7 +441,7 @@ proc check_effective_target_tls_runtime {} { close $f set comp_output \ - [target_compile $src $exe executable ""] + [${tool}_target_compile $src $exe executable ""] file delete $src if [string match "" $comp_output] then { |