diff mbox

[committed,testsuite] Tweak gcc.dg/stack-usage-1.c on SH

Message ID 20120620.164017.124728594.kkojima@rr.iij4u.or.jp
State New
Headers show

Commit Message

Kaz Kojima June 20, 2012, 7:40 a.m. UTC
>> 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.

Comments

Eric Botcazou June 20, 2012, 7:47 a.m. UTC | #1
> I've applied the patch below.  I'll backport it release branches.

Thanks!
diff mbox

Patch

--- 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