This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch committed testsuite] Tweak gcc.dg/stack-usage-1.c on SH
>> This is wrong, please remove the dg-options line and do like the other targets.
>
> I'll revert that line and use my patch in the trail #11 of
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621.
I've applied the patch below. I'll backport it release branches.
Regards,
kaz
--
2012-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
* gcc.dg/stack-usage-1.c: Remove dg-options line for sh targets
and add __sh__ case.
--- ORIG/trunk/gcc/testsuite/gcc.dg/stack-usage-1.c 2012-06-20 10:01:51.000000000 +0900
+++ trunk/gcc/testsuite/gcc.dg/stack-usage-1.c 2012-06-20 16:28:31.000000000 +0900
@@ -1,6 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-fstack-usage" } */
-/* { dg-options "-fstack-usage -fomit-frame-pointer" { target { sh*-*-* } } } */
/* This is aimed at testing basic support for -fstack-usage in the back-ends.
See the SPARC back-end for example (grep flag_stack_usage_info in sparc.c).
@@ -61,6 +60,8 @@
# define SIZE (256 - __EPIPHANY_STACK_OFFSET__)
#elif defined (__RL78__)
# define SIZE 254
+#elif defined (__sh__)
+# define SIZE 252
#else
# define SIZE 256
#endif