This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] PR29071: Handle -m64 on powerpc for gcc.dg/20020919-1.c testcase
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Dec 2007 14:05:18 -0500
- Subject: [Patch] PR29071: Handle -m64 on powerpc for gcc.dg/20020919-1.c testcase
The attached patch eliminates six failures in the
gcc.dg/20020919-1.c on the powerpc architecture when
-m64 is in use. Tested on powerpc-apple-darwin9.
Okay for trunk?
Jack
2007-12-15 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/29071
* gcc.dg/20020919-1.c: Handle powerpc with -m64.
Index: gcc.dg/20020919-1.c
===================================================================
--- gcc.dg/20020919-1.c (revision 131121)
+++ gcc.dg/20020919-1.c (working copy)
@@ -41,7 +41,9 @@
|| defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
# define REG1 "6"
# define REG2 "7"
-# ifndef __powerpc64__
+# if !defined(__powerpc64__) && !((defined (__powerpc__) || defined (__PPC__) \
+ || defined (__ppc__) || defined (__POWERPC__) || defined (PPC) \
+ || defined (_IBMR2)) && defined(__LP64__))
# define REG3 "8"
# define REG4 "9"
# endif