OSDN Git Service

* lib/target-supports.exp (check_gc_sections_available): Disable
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2004 18:01:09 +0000 (18:01 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2004 18:01:09 +0000 (18:01 +0000)
        for alpha and ia64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91730 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 1ff0eb3..d9772d2 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-04  Richard Henderson  <rth@redhat.com>
+
+       * lib/target-supports.exp (check_gc_sections_available): Disable
+       for alpha and ia64.
+
 2004-12-04  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR middle-end/17909
index 2e1bde6..d1d94f0 100644 (file)
@@ -193,6 +193,14 @@ proc check_gc_sections_available { } {
     global tool
 
     if {![info exists gc_sections_available_saved]} {
+       # Some targets don't support gc-sections despite whatever's
+       # advertised by ld's options.
+       if { [istarget alpha*-*-*]
+            || [istarget ia64-*-*] } {
+           set gc_sections_available_saved 0
+           return 0
+       }
+
        # Check if the ld used by gcc supports --gc-sections.
        set gcc_spec [${tool}_target_compile "-dumpspecs" "" "none" ""]
        regsub ".*\n\*linker:\[ \t\]*\n(\[^ \t\n\]*).*" "$gcc_spec" {\1} linker