Patchwork [testsuite] Update gcc.dg/stack-usage-1.c SIZE values for powerpc

login
register
mail settings
Submitter Peter Bergner
Date Feb. 1, 2011, 9:20 p.m.
Message ID <1296595220.18692.10.camel@otta>
Download mbox | patch
Permalink /patch/81378/
State New
Headers show

Comments

Peter Bergner - Feb. 1, 2011, 9:20 p.m.
More fallout from our --with-cpu=power7 builds.  This one never actually
ever worked for -m64 and fails on -m32 whenever we enable -maltivec.
Fixed thusly.  Ok for mainline?

Peter


	* gcc.dg/stack-usage-1.c (SIZE): Provide proper values for __PPC64__
	and __PPC__ && __ALTIVEC__.

Patch

Index: gcc.dg/stack-usage-1.c
===================================================================
--- gcc.dg/stack-usage-1.c	(revision 169365)
+++ gcc.dg/stack-usage-1.c	(working copy)
@@ -30,9 +30,15 @@ 
 #  else
 #    define SIZE 248
 #  endif
+#elif defined (__powerpc64__) || defined (__PPC64__)
+#  define SIZE 180
 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
       || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
-#  define SIZE 240
+#  if defined (__ALTIVEC__)
+#    define SIZE 220
+#  else
+#    define SIZE 240
+#  endif
 #elif defined (__AVR__)
 #  define SIZE 254
 #elif defined (__s390x__)