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
This commit is contained in:
parent
43e0343088
commit
75873b87c2
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue