Use -static when testing --gc-sections on native targets
From-SVN: r31880
This commit is contained in:
parent
564ad5f49e
commit
ae6f3fe9f6
@ -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.
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user