This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tweak to testsuite/gcc.dg/special/ecos.exp
- To: law at cygnus dot com
- Subject: Re: Tweak to testsuite/gcc.dg/special/ecos.exp
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Thu, 10 Jun 1999 07:53:31 +0100
- CC: egcs-patches at egcs dot cygnus dot com
- Organization: Cygnus Solutions
- References: <14562.928996225@upchuck.cygnus.com>
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"
}