[Patch] PR29071: Handle -m64 on powerpc for gcc.dg/20020919-1.c testcase

Jack Howarth howarth@bromo.msbb.uc.edu
Fri Dec 21 22:25:00 GMT 2007


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



More information about the Gcc-patches mailing list