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

From-SVN: r31880
This commit is contained in:
Jonathan Larmour 2000-02-10 01:30:43 +00:00 committed by Nick Clifton
parent 564ad5f49e
commit ae6f3fe9f6
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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"