Commit aeb11ee5 by John David Anglin Committed by John David Anglin

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
parent 63b025a5
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.
......
/* { 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. */
......
/* 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);
......
......@@ -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" } } */
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment