aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-10-13 23:09:17 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-10-13 23:09:17 +0000
commit71d46c6f918a210c83dcb8650ca384e6510a9937 (patch)
treeaa0880c8023a4cede3331ef9719a9c843e5d5014 /gcc
parent88e451e1e79973615371b41632a39f7e90444c3f (diff)
downloadgcc-71d46c6f918a210c83dcb8650ca384e6510a9937.zip
gcc-71d46c6f918a210c83dcb8650ca384e6510a9937.tar.gz
gcc-71d46c6f918a210c83dcb8650ca384e6510a9937.tar.bz2
asm-names.c: Use scan-assembler-not rather than linker trickery.
* gcc.dg/asm-names.c: Use scan-assembler-not rather than linker trickery. From-SVN: r72447
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/asm-names.c17
2 files changed, 7 insertions, 15 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 77e51a5..931ba30 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/asm-names.c b/gcc/testsuite/gcc.dg/asm-names.c
index d2841a0..f5e44e6 100644
--- a/gcc/testsuite/gcc.dg/asm-names.c
+++ b/gcc/testsuite/gcc.dg/asm-names.c
@@ -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(); }