diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-04-14 02:05:43 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-04-14 02:05:43 +0000 |
commit | fd86239df046e4082ca74ea793f70d4664ddcc0e (patch) | |
tree | 93656d62f0cf473b09cb413400a824d391d9bffb | |
parent | 2a60412a5fe4f46860bf03cf8242b4c0083a37cb (diff) | |
download | gcc-fd86239df046e4082ca74ea793f70d4664ddcc0e.zip gcc-fd86239df046e4082ca74ea793f70d4664ddcc0e.tar.gz gcc-fd86239df046e4082ca74ea793f70d4664ddcc0e.tar.bz2 |
target-supports.exp (check_gc_sections_available): Return false if ldflags includes -elf2flt.
* lib/target-supports.exp (check_gc_sections_available):
Return false if ldflags includes -elf2flt.
From-SVN: r123810
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 38d12d6..5ab3676 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,9 @@ * gcc.c-torture/compile/pr27528.c: Require nonpic. + * lib/target-supports.exp (check_gc_sections_available): + Return false if ldflags includes -elf2flt. + 2007-04-13 Jason Merrill <jason@redhat.com> PR c++/31074 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 180686f..9966197 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -286,6 +286,14 @@ proc check_gc_sections_available { } { return 0 } + # elf2flt uses -q (--emit-relocs), which is incompatible with + # --gc-sections. + if { [board_info target exists ldflags] + && [regexp " -elf2flt\[ =\]" " [board_info target ldflags] "] } { + set gc_sections_available_saved 0 + return 0 + } + # VxWorks kernel modules are relocatable objects linked with -r, # while RTP executables are linked with -q (--emit-relocs). # Both of these options are incompatible with --gc-sections. |