From 0a7134d607e47dfcdaa2bd7c7fa561445d1f76e2 Mon Sep 17 00:00:00 2001 From: nickc Date: Tue, 31 Jul 2012 10:29:49 +0000 Subject: * 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 --- gcc/config/frv/frv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config/frv/frv.c') 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; -- cgit v1.2.1