diff mbox

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

Message ID 1301365255.3679.16.camel@otta
State New
Headers show

Commit Message

Peter Bergner March 29, 2011, 2:20 a.m. UTC
On Mon, 2011-03-28 at 23:50 +0200, Dominique Dhumieres wrote:
> > Just guessing at the numbers, does the following patch fix the
> > failures for you?
> 
> As I am currently bootstrapping gcc, I cannot regtest right now, but running the
> test manually I get 256 at -m32 (I guess this is right) while I get 272 at -m64
> (so the test will fail).

Ok, slightly updated.  How about this?  Although it seems strange that
darwin has such a large amount of inherent stack usage compare to
linux.

Peter
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/stack-usage-1.c
===================================================================
--- gcc/testsuite/gcc.dg/stack-usage-1.c	(revision 171620)
+++ gcc/testsuite/gcc.dg/stack-usage-1.c	(working copy)
@@ -31,11 +31,19 @@ 
 #    define SIZE 248
 #  endif
 #elif defined (__powerpc64__) || defined (__PPC64__)
-#  define SIZE 180
+#  if defined (__APPLE__)
+#    define SIZE 132
+#  else
+#    define SIZE 180
+#  endif
 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
       || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
 #  if defined (__ALTIVEC__)
-#    define SIZE 220
+#    if defined (__APPLE__)
+#      define SIZE 204
+#    else
+#      define SIZE 220
+#    endif
 #  else
 #    define SIZE 240
 #  endif