]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 4 Jan 2005 00:20:35 +0000 (00:20 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 4 Jan 2005 00:20:35 +0000 (00:20 +0000)
2003-10-13  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/asm-names.c: Use scan-assembler-not rather
than linker trickery.

From-SVN: r92878

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asm-names.c

index 6d13be385287bb3350f8edb4583d5881efbaf727..db9c636b68af7352215af3e650bf3fcee267366e 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       Backport:
+       2003-10-13  Geoffrey Keating  <geoffk@apple.com>
+
+       * gcc.dg/asm-names.c: Use scan-assembler-not rather
+       than linker trickery.
+
 2005-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * gcc.c-torture/execute/20020720-1.x: XFAIL for x86 when using
index dbfa7925427f2aeff6a382e79dd618ad9f83a733..f5e44e65f6cedec8d911c7801cef13b270a50911 100644 (file)
@@ -2,26 +2,15 @@
    to have an underscore prefixed, even if normal symbols are.
    Problem reported by Krister Walfridsson <cato@df.lth.se>.  */
 
-/* { dg-do link } */
+/* { dg-do compile } */
 /* { dg-options "-fleading-underscore" } */
+/* { dg-final { scan-assembler-not "____frob14" } } */
 
 extern void frobnicate (void) asm ("___frob14");  /* three underscores */
 
-void __frob14 (void) {} /* two underscores */
-
 int
 main (void)
 {
   frobnicate ();
   return 0;
 }
-
-/* In case built where the runtime expects no leading underscore on
-   main(). */
-extern int xmain (void) asm ("main");
-
-int xmain (void) { return main(); }
-
-/* In case built where the runtime calls __main.  */
-extern int ymain (void) asm ("___main");
-int ymain (void) { return main(); }