From: rth Date: Sat, 4 Dec 2004 18:01:09 +0000 (+0000) Subject: * lib/target-supports.exp (check_gc_sections_available): Disable X-Git-Tag: upstream/4.9.2~65312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e67e521bab9f6d5fbe06611c3da2ff4a07fb269c;p=platform%2Fupstream%2Flinaro-gcc.git * lib/target-supports.exp (check_gc_sections_available): Disable for alpha and ia64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91730 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1ff0eb3..d9772d2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-12-04 Richard Henderson + + * lib/target-supports.exp (check_gc_sections_available): Disable + for alpha and ia64. + 2004-12-04 Andrew Pinski PR middle-end/17909 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2e1bde6..d1d94f0 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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