avr: accept -fstack-usage

Submitted by Tristan Gingold on Sept. 28, 2010, 8:34 a.m.

Details

Message ID 43EE62CD-CD01-4C2A-B66B-E43F1A6E1898@adacore.com
State New
Headers show

Commit Message

Tristan Gingold Sept. 28, 2010, 8:34 a.m.
On Sep 28, 2010, at 12:24 AM, Eric Botcazou wrote:

>> this patch implements -fstack-usage for AVR, which is very easy as the
>> stack usage was already computed.
> 
> Thanks!  You should also update testsuite/gcc.dg/stack-usage-1.c if needed.

Is this ok ?

testsuite/
2010-09-28  Tristan Gingold  <gingold@adacore.com>

	* gcc.dg/stack-usage-1.c (SIZE): Adjust for avr.

Comments

Eric Botcazou Sept. 28, 2010, 1:21 p.m.
> testsuite/
> 2010-09-28  Tristan Gingold  <gingold@adacore.com>
>
> 	* gcc.dg/stack-usage-1.c (SIZE): Adjust for avr.

Looks good to me.

Patch hide | download patch | download mbox

Index: gcc/testsuite/gcc.dg/stack-usage-1.c
===================================================================
--- gcc/testsuite/gcc.dg/stack-usage-1.c	(revision 164676)
+++ gcc/testsuite/gcc.dg/stack-usage-1.c	(working copy)
@@ -28,6 +28,8 @@ 
 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \
       || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2)
 #  define SIZE 240
+#elif defined (__AVR__)
+#  define SIZE 254