summaryrefslogtreecommitdiff
path: root/gcc/config/rl78
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rl78')
-rw-r--r--gcc/config/rl78/rl78.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c
index cae3fa6a446..a97fa20693f 100644
--- a/gcc/config/rl78/rl78.c
+++ b/gcc/config/rl78/rl78.c
@@ -827,6 +827,9 @@ rl78_expand_prologue (void)
if (!cfun->machine->computed)
rl78_compute_frame_info ();
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = cfun->machine->framesize;
+
for (i = 0; i < 16; i++)
if (cfun->machine->need_to_push [i])
{