This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Rework the check for PPC in uninit-H.c
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 15 Aug 2004 09:47:56 -0700
- Subject: [PATCH] Rework the check for PPC in uninit-H.c
I saw that AIX was failing this test for no reason except ASM was not
being set for that
target. I decided to rework the check for PPC to be more generic and
make sure that the
whole rs6000 targets get included.
OK?
Thanks,
Andrew Pinski
2008-08-15 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.dg/uninit-H.c: For PowerPC change the check to be more
generic, using the _ARCH_* defines instead.
Index: gcc.dg/uninit-H.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/uninit-H.c,v
retrieving revision 1.4
diff -u -p -r1.4 uninit-H.c
--- gcc.dg/uninit-H.c 15 May 2004 12:21:24 -0000 1.4
+++ gcc.dg/uninit-H.c 15 Aug 2004 16:46:30 -0000
@@ -6,7 +6,8 @@
# define ASM __asm__("$30")
#elif defined __i386__
# define ASM __asm__("esp")
-#elif (defined __powerpc__) || (defined __PPC__) || (defined __ppc__)
+#elif (defined _ARCH_PWR2) || (defined _ARCH_PWR) || (defined
_ARCH_PPC) ||\
+ (defined _ARCH_PPC64) || (defined _ARCH_COM)
# define ASM __asm__("r1")
#elif defined __s390__
# define ASM __asm__("r15")