[patch] Fix PR other/19328

John David Anglin dave@hiauly1.hia.nrc.ca
Sun Jan 9 00:26:00 GMT 2005


Tested on hppa2.0w-hp-hpux11.11.  Ok for main?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2005-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR other/19328
	* gcc.dg/attr-alias-2.c: Add required option for dg-require-alias.
	Add dg-warning "ignored" to alias attribute lines.

Index: gcc.dg/attr-alias-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/attr-alias-2.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 attr-alias-2.c
--- gcc.dg/attr-alias-2.c	2 Jan 2005 07:52:30 -0000	1.1
+++ gcc.dg/attr-alias-2.c	9 Jan 2005 00:17:55 -0000
@@ -1,10 +1,10 @@
 /* PR 19031 */
 /* { dg-do link } */
-/* { dg-require-alias } */
+/* { dg-require-alias "" } */
 /* { dg-options "-funit-at-a-time" } */
 
 static int f1 (void) { return 0; }
-extern int g1 (void) __attribute__((__alias__("f1")));
+extern int g1 (void) __attribute__((__alias__("f1"))); /* { dg-warning "ignored" } */
 
 #define STR(x) STR1(__USER_LABEL_PREFIX__, x)
 #define STR1(x,y) STR2(x, y)
@@ -12,7 +12,7 @@ extern int g1 (void) __attribute__((__al
 
 static int f2 (void) __asm__(STR(a2));
 static int f2 (void) { return 0; }
-extern int g2 (void) __attribute__((__alias__("a2")));
+extern int g2 (void) __attribute__((__alias__("a2"))); /* { dg-warning "ignored" } */
 
 int main ()
 {



More information about the Gcc-patches mailing list