aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-06-25 12:33:14 +0000
committerNick Clifton <nickc@gcc.gnu.org>2015-06-25 12:33:14 +0000
commited1332ee11848c7d2ded43f143f4fdb05b0645eb (patch)
tree27202676cf7d947ed2645eea121293263fb264d9 /gcc/config/m32r
parentb092fe39d0163b45c9ff4ac7754a544bb0892d68 (diff)
downloadgcc-ed1332ee11848c7d2ded43f143f4fdb05b0645eb.zip
gcc-ed1332ee11848c7d2ded43f143f4fdb05b0645eb.tar.gz
gcc-ed1332ee11848c7d2ded43f143f4fdb05b0645eb.tar.bz2
bfin.c (bfin_expand_prologue): Set current_function_static_stack_size if flag_stack_usage_info is set.
* config/bfin/bfin.c (bfin_expand_prologue): Set current_function_static_stack_size if flag_stack_usage_info is set. * config/ft32/ft32.c (ft32_expand_prologue): Likewise. * config/h8300/h8300.c (h8300_expand_prologue): Likewise. * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise. * config/m32c/m32c.c (m32c_emit_prologue): Likewise. test * gcc.dg/stack-usage-1.c: Add SIZE values for V850, MN10300, H8300 and M32R targets. From-SVN: r224937
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/m32r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index bf88ef2..cc40b45 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -1665,6 +1665,9 @@ m32r_expand_prologue (void)
if (! current_frame_info.initialized)
m32r_compute_frame_size (get_frame_size ());
+ if (flag_stack_usage_info)
+ current_function_static_stack_size = current_frame_info.total_size;
+
gmask = current_frame_info.gmask;
/* These cases shouldn't happen. Catch them now. */