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]

[PATCH] Fix gcc.dg/uninit-H.c on powerpc-apple-darwin


Powerpc-apple-darwin does defined __powerpc__ so check for also __PPC__
and __ppc__ will fix the testcase on this target.

Committed as obvious.

Thanks,
Andrew Pinski

ChangeLog:

2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>

        * gcc.dg/uninit-H.c: Test for __PPC__ and __ppc__
        for the powerpc case.

Patch:
Index: gcc.dg/uninit-H.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-H.c,v
retrieving revision 1.2
diff -u -p -r1.2 uninit-H.c
--- gcc.dg/uninit-H.c	13 May 2004 06:40:49 -0000	1.2
+++ gcc.dg/uninit-H.c	13 May 2004 22:54:08 -0000
@@ -6,7 +6,7 @@
 # define ASM __asm__("$30")
 #elif defined __i386__
 # define ASM __asm__("esp")
-#elif defined __powerpc__
+#elif (defined __powerpc__) || (defined __PPC__) || (defined __ppc__)
 # define ASM __asm__("r1")
 #else
 # define ASM


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