This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

disable gcsec test for alpha and ia64


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]