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
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
# 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
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
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 {