From b950ac25af39eddd5370178acb70e94726d6dcde Mon Sep 17 00:00:00 2001 From: David Holsgrove Date: Thu, 18 Jul 2013 23:57:12 +0000 Subject: [PATCH] microblaze.c (microblaze_expand_prologue): Add check for flag_stack_usage to handle -fstack-usage support * gcc/config/microblaze/microblaze.c (microblaze_expand_prologue): Add check for flag_stack_usage to handle -fstack-usage support From-SVN: r201042 --- gcc/ChangeLog | 5 +++++ gcc/config/microblaze/microblaze.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99788662229..981d4895cd5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-07-18 David Holsgrove + + * config/microblaze/microblaze.c (microblaze_expand_prologue): + Add check for flag_stack_usage to handle -fstack-usage support + 2013-07-18 Pat Haugen * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index c121c2baec3..46d07c7e318 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -2768,6 +2768,9 @@ microblaze_expand_prologue (void) fsiz = compute_frame_size (get_frame_size ()); + if (flag_stack_usage) + current_function_static_stack_size = fsiz; + /* If this function is a varargs function, store any registers that would normally hold arguments ($5 - $10) on the stack. */ if (((TYPE_ARG_TYPES (fntype) != 0