diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 12:33:14 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-25 12:33:14 +0000 |
commit | cc16f5e2efeddcfaafe30d7f43daf920708a0114 (patch) | |
tree | 27202676cf7d947ed2645eea121293263fb264d9 /gcc/config/m32c | |
parent | 5b11c9b9071c416628f26b25abfe59fe6b34d5c4 (diff) | |
download | gcc-cc16f5e2efeddcfaafe30d7f43daf920708a0114.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m32c')
-rw-r--r-- | gcc/config/m32c/m32c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index 10e53e4563f..83209aa2a37 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -4123,6 +4123,9 @@ m32c_emit_prologue (void) && !m32c_function_needs_enter ()) cfun->machine->use_rts = 1; + if (flag_stack_usage_info) + current_function_static_stack_size = frame_size; + if (frame_size > 254) { extra_frame_size = frame_size - 254; |