]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Mar 2007 09:34:25 +0000 (09:34 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Mar 2007 09:34:25 +0000 (09:34 +0000)
* lib/target-supports.exp (check_gc_sections_available): Return
false for VxWorks targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122951 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index e26d2ddc8f5ed5f60aaf237ad943c374452e18d2..4fb39f79e6672748899eb4f66fd867a3d8813eb8 100644 (file)
@@ -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.
index e8efd58365dfeb12f133344dd1b85b86cc9ca96c..834b2d2d8fdb789f61253b5b3a028dca1271dc69 100644 (file)
@@ -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