This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Tweak to testsuite/gcc.dg/special/ecos.exp


Jeffrey A Law wrote:
> 
> One nit -- instead of explicitly looking at the host/target to determine if
> you're testing native, there's a function already available to do this for
> you.  "isnative" :-)
> [snip]
> I think with that minor change we should be in the clear.

Trivially done, and attached. Again, here's the ChangeLog entry, just in
case.

1999-06-04  Jonathan Larmour  <jlarmour@cygnus.co.uk>

        * gcc.dg/special/ecos.exp: Use -static when testing --gc-sections
        on native targets


Jifl
-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
 my brains kept falling out."    || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault
Index: gcc/testsuite/gcc.dg/special/ecos.exp
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/gcc.dg/special/ecos.exp,v
retrieving revision 1.1
diff -u -5 -p -r1.1 ecos.exp
--- gcc/testsuite/gcc.dg/special/ecos.exp	1999/02/10 16:00:06	1.1
+++ gcc/testsuite/gcc.dg/special/ecos.exp	1999/06/10 06:51:57
@@ -203,11 +203,15 @@ if { [ check_weak_available ] == 1 } {
 set ld_output [ exec [ 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"
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]