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
This commit is contained in:
John David Anglin 2003-03-13 03:54:27 +00:00 committed by John David Anglin
parent 63b025a5c3
commit aeb11ee523
5 changed files with 14 additions and 4 deletions

View file

@ -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.

View file

@ -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. */

View file

@ -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);

View file

@ -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" } } */

View file

@ -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.