disable gcsec test for alpha and ia64
Richard Henderson
rth@redhat.com
Sat Dec 4 18:02:00 GMT 2004
There's no support in the bfd backend for these targets, so you get
an error from the middle-end bits of bfd when you try to use it.
r~
* lib/target-supports.exp (check_gc_sections_available): Disable
for alpha and ia64.
Index: lib/target-supports.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/target-supports.exp,v
retrieving revision 1.32
diff -c -p -d -r1.32 target-supports.exp
*** lib/target-supports.exp 2 Dec 2004 00:05:15 -0000 1.32
--- lib/target-supports.exp 4 Dec 2004 17:59:48 -0000
*************** proc check_gc_sections_available { } {
*** 193,198 ****
--- 193,206 ----
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
More information about the Gcc-patches
mailing list