]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
asm-names.c: Use scan-assembler-not rather than linker trickery.
authorGeoffrey Keating <geoffk@apple.com>
Mon, 13 Oct 2003 23:09:17 +0000 (23:09 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 13 Oct 2003 23:09:17 +0000 (23:09 +0000)
* gcc.dg/asm-names.c: Use scan-assembler-not rather
than linker trickery.

From-SVN: r72447

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

index 77e51a5564ae1f3a0b8bea838dc472027ad493f7..931ba30a8c14e73ee5638d16a507dde972a02abb 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-13  Geoffrey Keating  <geoffk@apple.com>
+
+       * gcc.dg/asm-names.c: Use scan-assembler-not rather
+       than linker trickery.
+
 2003-10-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/12370
index d2841a0f40cb9cc73922e5a9a40c48d7141c4d25..f5e44e65f6cedec8d911c7801cef13b270a50911 100644 (file)
@@ -2,28 +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.  */
-/* But make it weak because some targets already define this function.  */
-#pragma weak ymain
-extern int ymain (void) asm ("___main");
-int ymain (void) { return main(); }