diff options
-rw-r--r-- | ChangeLog.csl | 9 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 78 |
2 files changed, 8 insertions, 79 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 0226bf91976..0c356c44846 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,6 +1,13 @@ +2006-09-14 Nathan Sidwell <nathan@codesourcery.com> + + gcc/testsuite/ + * lib/target-supports.exp (check_effective_target_tls, + check_effective_target_tls_runtime): Remove bogus second definitions. + 2006-09-13 Carlos O'Donell <carlos@codesourcery.com> - * gcc/gcc.c (process_command): Use standard_libexec_prefix + gcc/ + * gcc.c (process_command): Use standard_libexec_prefix as a fallback for gcc_libexec_prefix. 2006-09-12 Kazu Hirata <kazu@codesourcery.com> diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 47cfb860f43..361fb767249 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -445,84 +445,6 @@ proc check_effective_target_freorder {} { } "-freorder-blocks-and-partition"] } -# Return 1 if thread local storage (TLS) is supported, 0 otherwise. -# -# This won't change for different subtargets so cache the result. - -proc check_effective_target_tls {} { - global et_tls_saved - - if [info exists et_tls_saved] { - verbose "check_effective_target_tls: using cached result" 2 - } else { - set et_tls_saved 1 - - set src tls[pid].c - set asm tls[pid].S - verbose "check_effective_target_tls: compiling testfile $src" 2 - set f [open $src "w"] - # Compile a small test program. - puts $f "__thread int i;\n" - close $f - - # Test for thread-local data supported by the platform. - set comp_output \ - [target_compile $src $asm assembly ""] - file delete $src - if { [string match "*not supported*" $comp_output] } { - set et_tls_saved 0 - } - remove-build-file $asm - } - verbose "check_effective_target_tls: returning $et_tls_saved" 2 - return $et_tls_saved -} - -# Return 1 if TLS executables can run correctly, 0 otherwise. -# -# This won't change for different subtargets so cache the result. - -proc check_effective_target_tls_runtime {} { - global et_tls_runtime_saved - - if [info exists et_tls_runtime_saved] { - verbose "check_effective_target_tls_runtime: using cached result" 2 - } else { - set et_tls_runtime_saved 0 - - set src tls_runtime[pid].c - set exe tls_runtime[pid].x - verbose "check_effective_target_tls_runtime: compiling testfile $src" 2 - set f [open $src "w"] - # Compile a small test program. - puts $f "__thread int thr = 0;\n" - puts $f "int main(void)\n {\n return thr;\n}" - close $f - - set comp_output \ - [target_compile $src $exe executable ""] - file delete $src - - if [string match "" $comp_output] then { - # No error messages, everything is OK. - - set result [remote_load target "./$exe" "" ""] - set status [lindex $result 0] - remote_file build delete $exe - - verbose "check_effective_target_tls_runtime status is <$status>" 2 - - if { $status == "pass" } { - set et_tls_runtime_saved 1 - } - - verbose "check_effective_target_tls_runtime: returning $et_tls_runtime_saved" 2 - } - } - - return $et_tls_runtime_saved -} - # Return 1 if compilation with -freorder-blocks-and-partition is error-free # for trivial code, 0 otherwise. |