OSDN Git Service

Use -static when testing --gc-sections on native targets
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2000 01:30:43 +0000 (01:30 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2000 01:30:43 +0000 (01:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31880 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/special/ecos.exp

index 3d6cb6f..eca8f25 100644 (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.
index a02b209..8ed0daf 100644 (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"