This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[3.3 patch installed]: backport testcase fix for PR 19229


As noted by rth in the PR, the updated testcase present in 3.4 and
mainline is "More Correct", therefore I backported & installed it into
the 3.3 branch.  This cures the failures I saw with -fpic or -fPIC on
x86.

		--Kaveh


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.

RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/asm-names.c,v
retrieving revision 1.2
retrieving revision 1.2.44.1
diff -u -r1.2 -r1.2.44.1
--- gcc/gcc/testsuite/gcc.dg/asm-names.c	2001/08/27 19:23:11
1.2
+++ gcc/gcc/testsuite/gcc.dg/asm-names.c	2005/01/04 00:20:35
1.2.44.1
@@ -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(); }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]