diff options
author | Nick Clifton <nickc@redhat.com> | 2012-07-31 10:29:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-07-31 10:29:49 +0000 |
commit | 232831bfa80ff0b5a797f83e5068d3872e9f3176 (patch) | |
tree | f7957fd21f9c7b45a4b3f1ee1e8763a91f976db3 /gcc/config/frv | |
parent | daa4dca8c720a53132c1256b34f8f9087b8db8a4 (diff) |
* config/frv/frv.c (frv_expand_prologue): Report stack usage.
* gcc.dg/stack-usage-1.c (SIZE): Define for FRV.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@190004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/frv')
-rw-r--r-- | gcc/config/frv/frv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 12e79149879..6c3f45d5528 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -1761,6 +1761,9 @@ frv_expand_prologue (void) if (TARGET_DEBUG_STACK) frv_debug_stack (info); + if (flag_stack_usage_info) + current_function_static_stack_size = info->total_size; + if (info->total_size == 0) return; |