On Mon, 2011-03-28 at 20:48 +0200, Dominique Dhumieres wrote:
> The test gcc.dg/stack-usage-1.c already failed on powerpc-apple-darwin9
> before you change with:
>
> FAIL: gcc.dg/stack-usage-1.c scan-file foo\t(256|264)\tstatic
>
> and is still failing the same way after it.
>
> [karma] f90/bug% grep foo stack-usage-1.su
> stack-usage-1.c:54:5:foo 272 static
>
> for -m32 and
>
> [karma] f90/bug% grep foo stack-usage-1.su
> stack-usage-1.c:54:5:foo 288 static
>
> for -m64.
Just guessing at the numbers, does the following patch fix the
failures for you? I did not add a non-Altivec 32-bit define,
since I believe Altivec is always enabled for darwin, correct?
Peter
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 148
+# 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