summaryrefslogtreecommitdiff
path: root/gcc/config/stormy16
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-31 12:48:17 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-31 12:48:17 +0000
commit54474b859072554ba31a5a719c69461e660022e4 (patch)
treee52cddaa7e05b4254cd815f021c7f80e8b1a9448 /gcc/config/stormy16
parentba69439f11358421e81653d967731550671a7289 (diff)
downloadgcc-54474b859072554ba31a5a719c69461e660022e4.tar.gz
* config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
support for reporting stack usage. * gcc.dg/stack-usage-1.c (SIZE): Define for FRV, and for XStormy16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190009 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/stormy16')
-rw-r--r--gcc/config/stormy16/stormy16.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c
index cd7521258fc..fb0844c69f3 100644
--- a/gcc/config/stormy16/stormy16.c
+++ b/gcc/config/stormy16/stormy16.c
@@ -1035,6 +1035,9 @@ xstormy16_expand_prologue (void)
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;