2012-07-31 Nick Clifton <nickc@redhat.com>
* config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
support for reporting stack usage.
testsuite/ChangeLog
2012-07-31 Nick Clifton <nickc@redhat.com>
* gcc.dg/stack-usage-1.c (SIZE): Define for FRV,
and for XStormy16.
===================================================================
@@ -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;
===================================================================
@@ -64,6 +64,8 @@
# define SIZE 252
#elif defined (__frv__)
# define SIZE 248
+#elif defined (xstormy16)
+# define SIZE 254
#else
# define SIZE 256
#endif