stack-usage-1.c: Adjust on i386/Darwin.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 2 Sep 2010 11:00:51 +0000 (11:00 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 2 Sep 2010 11:00:51 +0000 (11:00 +0000)
* gcc.dg/stack-usage-1.c: Adjust on i386/Darwin.
* gcc.target/i386/stack-usage-realign.c: Skip on i386/Darwin.

From-SVN: r163768

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-usage-1.c
gcc/testsuite/gcc.target/i386/stack-usage-realign.c

index d6b58a6..95a0b8b 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-02  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc.dg/stack-usage-1.c: Adjust on i386/Darwin.
+       * gcc.target/i386/stack-usage-realign.c: Skip on i386/Darwin.
+
 2010-09-02  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/45489
index f174882..48fc9ee 100644 (file)
@@ -8,7 +8,11 @@
    Then check that this is the actual stack usage in the assembly file.  */
 
 #if defined(__i386__)
-#  define SIZE 248
+#  if defined (__MACH__)
+#    define SIZE 232
+#  else
+#    define SIZE 248
+#  endif
 #elif defined(__x86_64__)
 #  define SIZE 356
 #elif defined (__sparc__)
index 30d7835..03d9d41 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target ilp32 } */
+/* { dg-skip-if "no stack realignment" { *-*-darwin* } { "*" } { "" } } */
 /* { dg-options "-fstack-usage -msse2 -mforce-drap" } */
 
 typedef int __attribute__((vector_size(16))) vec;