summaryrefslogtreecommitdiffstats
path: root/gcc/config/frv/frv.c
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-31 10:29:49 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-31 10:29:49 +0000
commit0a7134d607e47dfcdaa2bd7c7fa561445d1f76e2 (patch)
treef7957fd21f9c7b45a4b3f1ee1e8763a91f976db3 /gcc/config/frv/frv.c
parent35825f8357d00683c0405ab56bd56b20ae4a0817 (diff)
downloadppe42-gcc-0a7134d607e47dfcdaa2bd7c7fa561445d1f76e2.tar.gz
ppe42-gcc-0a7134d607e47dfcdaa2bd7c7fa561445d1f76e2.zip
* config/frv/frv.c (frv_expand_prologue): Report stack usage.
* gcc.dg/stack-usage-1.c (SIZE): Define for FRV. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190004 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/frv/frv.c')
-rw-r--r--gcc/config/frv/frv.c3
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;
OpenPOWER on IntegriCloud