diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-03-15 09:34:25 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-03-15 09:34:25 +0000 |
commit | 75873b87c244cb5b9b413ca0a457b54837535fc2 (patch) | |
tree | a6d1a1e31104440061067a7cd10a9b876405de92 | |
parent | 43e034308853a13ba3117b38a959268404210f15 (diff) | |
download | gcc-75873b87c244cb5b9b413ca0a457b54837535fc2.zip gcc-75873b87c244cb5b9b413ca0a457b54837535fc2.tar.gz gcc-75873b87c244cb5b9b413ca0a457b54837535fc2.tar.bz2 |
target-supports.exp (check_gc_sections_available): Return false for VxWorks targets.
gcc/testsuite/
* lib/target-supports.exp (check_gc_sections_available): Return
false for VxWorks targets.
From-SVN: r122951
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e26d2dd..4fb39f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-03-15 Richard Sandiford <richard@codesourcery.com> + + * lib/target-supports.exp (check_gc_sections_available): Return + false for VxWorks targets. + 2007-03-15 Dirk Mueller <dmueller@suse.de> * g++.dg/warn/Wconversion2.C: Fix typo. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e8efd58..834b2d2 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 } + # 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. + if { [istarget *-*-vxworks*] } { + 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 |