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

Jack Howarth howarth@bromo.msbb.uc.edu
Mon Dec 24 08:28:00 GMT 2007


This revised patch substitutes __LP64__ in the ifndef for powerpc
targets since darwin doesn't define __powerpc64__ at -m64. Tested
on powerpc-apple-darwin9. Okay for gcc trunk?
              Jack

2007-12-23  Jack Howarth  <howarth@bromo.med.uc.edu>
	PR testsuite/29071
	* gcc.dg/20020919-1.c: Use __LP64__ instead of __powerpc64__
	for darwin.

Index: gcc.dg/20020919-1.c
===================================================================
--- gcc.dg/20020919-1.c	(revision 131138)
+++ gcc.dg/20020919-1.c	(working copy)
@@ -41,7 +41,7 @@
 	|| defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
 # define REG1 "6"
 # define REG2 "7"
-# ifndef __powerpc64__
+# ifndef __LP64__
 #  define REG3 "8"
 #  define REG4 "9"
 # endif



More information about the Gcc-patches mailing list