Commit 8138dfe4 by Richard Henderson Committed by Richard Henderson

target-supports.exp (check_gc_sections_available): Disable for alpha and ia64.

        * lib/target-supports.exp (check_gc_sections_available): Disable
        for alpha and ia64.

From-SVN: r91730
parent b732f36f
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment