]> gcc.gnu.org Git - gcc.git/commitdiff
ecos.exp (gcsec-1.c): Find linker used by gcc.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Thu, 13 Mar 2003 03:54:27 +0000 (03:54 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 13 Mar 2003 03:54:27 +0000 (03:54 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/funcorder.c
gcc/testsuite/gcc.dg/inline-1.c
gcc/testsuite/gcc.dg/old-style-asm-1.c
gcc/testsuite/gcc.dg/special/ecos.exp

index 4c34daa7fb82ee50cc6b0aa5d568375a50baed4a..6492c098c0c1042e8702ca6401c2031121de8fb6 100644 (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.
index 0dec72c7d02b7a40cf40c55afaa3b7f3b921241b..b064d1cc46701d6b898caede0cad9898d2ad687b 100644 (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.  */
  
index 17a9a2f7243dacb95c8ab03f039a75aecf7883f3..4dce611d91283dcd020e4ea8d419b098c1d799ea 100644 (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);
index a265fe10d842acca5231987cf1028a744e2ffd9a..c33707e609c07a771493aeea82f560b365366235 100644 (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" } } */
index b8875023ae1f5ef293fca9b51021f560ea0798ee..835233f1d4b631f889b5ba11050140e0bc022de4 100644 (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.
This page took 0.084072 seconds and 5 git commands to generate.