Commit 75873b87 by Richard Sandiford Committed by Richard Sandiford

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
parent 43e03430
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment