summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-10 01:30:43 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-10 01:30:43 +0000
commit22181af59b0212a1b32c11a1f8e549f20718b442 (patch)
tree04e91be825698a2364d01f0a837b35b3717453be /gcc/testsuite
parent0f0b378982ad0ca24ac9b4dd2e72861333e01bff (diff)
downloadgcc-22181af59b0212a1b32c11a1f8e549f20718b442.tar.gz
Use -static when testing --gc-sections on native targets
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31880 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/special/ecos.exp6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3d6cb6f1f0f..eca8f2520fa 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/special/ecos.exp b/gcc/testsuite/gcc.dg/special/ecos.exp
index a02b2090fed..8ed0daf3afb 100644
--- a/gcc/testsuite/gcc.dg/special/ecos.exp
+++ b/gcc/testsuite/gcc.dg/special/ecos.exp
@@ -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"