aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-14 14:32:02 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-14 14:32:02 +0000
commitee2064e6aae5bd752cf6635dc0ca1585a71de007 (patch)
tree2b38ce0bd0dc1b34f6cd0cef52dc0dc9b4b99db9
parent1bfb2570e5ad386ac85a90ae547eae9640310f7c (diff)
gcc/testsuite/csl/sourcerygxx/4.1-20
* lib/target-supports.exp (check_effective_target_tls, check_effective_target_tls_runtime): Remove bogus second definitions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@116946 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog.csl9
-rw-r--r--gcc/testsuite/lib/target-supports.exp78
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.