Commit ae6f3fe9 by Jonathan Larmour Committed by Nick Clifton

Use -static when testing --gc-sections on native targets

From-SVN: r31880
parent 564ad5f4
2000-02-09 Jonathan Larmour <jlarmour@redhat.co.uk>
* gcc.dg/special/ecos.exp: Use -static when testing --gc-sections
on native targets
2000-02-08 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.other/cast5.C: New test.
......
......@@ -139,7 +139,11 @@ set ld_output [ remote_exec host "[ find_ld ]" "--help" ]
if { [ string first "--gc-sections" $ld_output ] >= 0 } {
dg-init
dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections" ""
if [isnative] {
dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" ""
} else {
dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections" ""
}
dg-finish
} else {
unsupported "gcsec-1.c"
......
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