for alpha and ia64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91730
138bc75d-0d04-0410-961f-
82ee72b054a4
+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