aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2010-10-31 15:04:10 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2010-10-31 15:04:10 +0000
commit3dff0fa203d8a52e8a7325cad995af646b52df73 (patch)
treedd573833eb66d543e4af0c557c5762c98f993939 /gcc
parentee2caaea6c57bec3d975ff19368e8a9d2db3e6ab (diff)
downloadgcc-3dff0fa203d8a52e8a7325cad995af646b52df73.zip
gcc-3dff0fa203d8a52e8a7325cad995af646b52df73.tar.gz
gcc-3dff0fa203d8a52e8a7325cad995af646b52df73.tar.bz2
stack-usage-1.c (SIZE): Increase to 248 for some MIPS targets.
gcc/testsuite/ * gcc.dg/stack-usage-1.c (SIZE): Increase to 248 for some MIPS targets. From-SVN: r166110
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/stack-usage-1.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d6c9598..7f661e0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2010-10-31 Richard Sandiford <rdsandiford@googlemail.com>
+ * gcc.dg/stack-usage-1.c (SIZE): Increase to 248 for some MIPS targets.
+
+2010-10-31 Richard Sandiford <rdsandiford@googlemail.com>
+
* gcc.dg/tls/thr-init-1.c: Fix order of dg-do.
* gcc.dg/tls/thr-init-2.c: Likewise. Require tls_runtime rather
than tls.
diff --git a/gcc/testsuite/gcc.dg/stack-usage-1.c b/gcc/testsuite/gcc.dg/stack-usage-1.c
index 25ae9a9..befe4cb 100644
--- a/gcc/testsuite/gcc.dg/stack-usage-1.c
+++ b/gcc/testsuite/gcc.dg/stack-usage-1.c
@@ -24,7 +24,12 @@
#elif defined (__ia64__)
# define SIZE 272
#elif defined(__mips__)
-# define SIZE 240
+# if defined (__mips_abicalls) \
+ || (defined _MIPS_SIM && (_MIPS_SIM ==_ABIN32 || _MIPS_SIM==_ABI64))
+# define SIZE 240
+# else
+# define SIZE 248
+# endif
#elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
|| defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
# define SIZE 240