aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/microblaze
diff options
context:
space:
mode:
authorDavid Holsgrove <david.holsgrove@xilinx.com>2013-07-18 23:57:12 +0000
committerMichael Eager <eager@eagercon.com>2013-07-18 23:57:12 +0000
commit6cf0246bdc53eee3f52e534252c76ba431797dde (patch)
tree66841f071ecbe06e955627362e2c5d5a02e9c09d /gcc/config/microblaze
parent5d67e6f713fa58fcd07f12727e177087b3826740 (diff)
* gcc/config/microblaze/microblaze.c (microblaze_expand_prologue):
Add check for flag_stack_usage to handle -fstack-usage support git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@201042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/microblaze')
-rw-r--r--gcc/config/microblaze/microblaze.c3
1 files changed, 3 insertions, 0 deletions
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