diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2003-03-13 03:54:27 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2003-03-13 03:54:27 +0000 |
commit | aeb11ee523e3d24a9f87991fe8bf705a74b6f5e5 (patch) | |
tree | 7e15e03e3fcd8171dc97598004f07f6e29bf4a8a | |
parent | 63b025a5c38f0a57caa10e93b78db8311f343778 (diff) | |
download | gcc-aeb11ee523e3d24a9f87991fe8bf705a74b6f5e5.zip gcc-aeb11ee523e3d24a9f87991fe8bf705a74b6f5e5.tar.gz gcc-aeb11ee523e3d24a9f87991fe8bf705a74b6f5e5.tar.bz2 |
ecos.exp (gcsec-1.c): Find linker used by gcc.
* gcc.dg/special/ecos.exp (gcsec-1.c): Find linker used by gcc.
* gcc.dg/old-style-asm-1.c (dg-final): Add hpux label alternative to
regular expression.
* gcc.dg/funcorder.c (dg-final): Check for "link_error,%r" on hppa*-*-*.
* gcc.dg/inline-1.c (dg-final): Check for "xyzzy?,%r" on hppa*-*-*.
From-SVN: r64299
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/funcorder.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/inline-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/old-style-asm-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/special/ecos.exp | 4 |
5 files changed, 14 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4c34daa..6492c09 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * gcc.dg/special/ecos.exp (gcsec-1.c): Find linker used by gcc. + * gcc.dg/old-style-asm-1.c (dg-final): Add hpux label alternative to + regular expression. + * gcc.dg/funcorder.c (dg-final): Check for "link_error,%r" on hppa*-*-*. + * gcc.dg/inline-1.c (dg-final): Check for "xyzzy?,%r" on hppa*-*-*. + 2003-03-12 Daniel Jacobowitz <drow@mvista.com> * gcc.c-torture/execute/20030224-2.c: New test. diff --git a/gcc/testsuite/gcc.dg/funcorder.c b/gcc/testsuite/gcc.dg/funcorder.c index 0dec72c..b064d1c 100644 --- a/gcc/testsuite/gcc.dg/funcorder.c +++ b/gcc/testsuite/gcc.dg/funcorder.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -funit-at-a-time" } */ -/* { dg-final { scan-assembler-not "link_error" } } */ +/* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-not "link_error,%r" } else { scan-assembler-not "link_error" } } } */ /* In unit-at-time the functions should be assembled in order e q t main, so we realize that they are pure. */ diff --git a/gcc/testsuite/gcc.dg/inline-1.c b/gcc/testsuite/gcc.dg/inline-1.c index 17a9a2f..4dce611 100644 --- a/gcc/testsuite/gcc.dg/inline-1.c +++ b/gcc/testsuite/gcc.dg/inline-1.c @@ -1,7 +1,7 @@ /* Verify that DECL_INLINE gets copied between DECLs properly. */ /* { dg-do compile } */ /* { dg-options "-O1" } */ -/* { dg-final { scan-assembler-not "xyzzy" } } */ +/* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-not "xyzzy?,%r" } else { scan-assembler-not "xyzzy" } } } */ /* Test that declaration followed by definition inlines. */ static inline int xyzzy0 (int); diff --git a/gcc/testsuite/gcc.dg/old-style-asm-1.c b/gcc/testsuite/gcc.dg/old-style-asm-1.c index a265fe1..c33707e 100644 --- a/gcc/testsuite/gcc.dg/old-style-asm-1.c +++ b/gcc/testsuite/gcc.dg/old-style-asm-1.c @@ -24,4 +24,4 @@ void foo(int v) because for example it depends on the target macro ASM_GENERATE_INTERNAL_LABEL to generate a name matching this regexp (as with the default definition). */ -/* { dg-final { scan-assembler "L(:)?2" } } */ +/* { dg-final { scan-assembler "L(:|\\\$0*)?2" } } */ diff --git a/gcc/testsuite/gcc.dg/special/ecos.exp b/gcc/testsuite/gcc.dg/special/ecos.exp index b887502..835233f1 100644 --- a/gcc/testsuite/gcc.dg/special/ecos.exp +++ b/gcc/testsuite/gcc.dg/special/ecos.exp @@ -155,7 +155,9 @@ if { [ check_weak_available ] == 1 } { # gcsec-1.c ########### -set ld_output [ remote_exec host "[ find_ld ]" "--help" ] +# Check if the ld used by gcc supports --gc-sections. +set gcc_ld [lindex [gcc_target_compile "-print-prog-name=ld" "" "none" ""] 0] +set ld_output [remote_exec host "$gcc_ld" "--help"] # AIX gld supports garbage collection. But AIX gcc does not support # -ffunction-sections or -fdata-sections. |