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
This commit is contained in:
David Holsgrove 2013-07-18 23:57:12 +00:00 committed by Michael Eager
parent ed1fd9999c
commit b950ac25af
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
* config/microblaze/microblaze.c (microblaze_expand_prologue):
Add check for flag_stack_usage to handle -fstack-usage support
2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag

View File

@ -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