From: Kaveh R. Ghazi Date: Tue, 4 Jan 2005 00:20:35 +0000 (+0000) Subject: Backport: X-Git-Tag: releases/gcc-3.3.6~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1f36aa7624c05a914f1de93467a6460ff7f1ece;p=thirdparty%2Fgcc.git Backport: 2003-10-13 Geoffrey Keating * gcc.dg/asm-names.c: Use scan-assembler-not rather than linker trickery. From-SVN: r92878 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d13be385287..db9c636b68af 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2005-01-03 Kaveh R. Ghazi + + Backport: + 2003-10-13 Geoffrey Keating + + * gcc.dg/asm-names.c: Use scan-assembler-not rather + than linker trickery. + 2005-01-02 Kaveh R. Ghazi * gcc.c-torture/execute/20020720-1.x: XFAIL for x86 when using diff --git a/gcc/testsuite/gcc.dg/asm-names.c b/gcc/testsuite/gcc.dg/asm-names.c index dbfa7925427f..f5e44e65f6ce 100644 --- a/gcc/testsuite/gcc.dg/asm-names.c +++ b/gcc/testsuite/gcc.dg/asm-names.c @@ -2,26 +2,15 @@ to have an underscore prefixed, even if normal symbols are. Problem reported by Krister Walfridsson . */ -/* { 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(); }