Hi Guys, I am checking in the patch below to add support for reporting stack usage by the XStormy16 backend.
Cheers Nick gcc/ChangeLog Index: gcc/ChangeLog 2012-07-31 Nick Clifton <ni...@redhat.com> * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add support for reporting stack usage. testsuite/ChangeLog 2012-07-31 Nick Clifton <ni...@redhat.com> * gcc.dg/stack-usage-1.c (SIZE): Define for FRV, and for XStormy16. Index: gcc/config/stormy16/stormy16.c =================================================================== --- gcc/config/stormy16/stormy16.c (revision 190007) +++ gcc/config/stormy16/stormy16.c (working copy) @@ -1035,6 +1035,9 @@ if (layout.locals_size >= 32768) error ("local variable memory requirements exceed capacity"); + if (flag_stack_usage_info) + current_function_static_stack_size = layout.frame_size; + /* Save the argument registers if necessary. */ if (layout.stdarg_save_size) for (regno = FIRST_ARGUMENT_REGISTER; Index: gcc/testsuite/gcc.dg/stack-usage-1.c =================================================================== --- gcc/testsuite/gcc.dg/stack-usage-1.c (revision 190007) +++ gcc/testsuite/gcc.dg/stack-usage-1.c (working copy) @@ -64,6 +64,8 @@ # define SIZE 252 #elif defined (__frv__) # define SIZE 248 +#elif defined (xstormy16) +# define SIZE 254 #else # define SIZE 256 #endif