* lib/target-supports.exp (check_gc_sections_available): Disable
        for alpha and ia64.
From-SVN: r91730
+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
 
     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