Commit f69ea688 by Andreas Schwab Committed by Andreas Schwab

re PR target/47955 (gcc.dg/stack-usage-1.c fails on m68k-linux)

PR target/47955
* gcc/config/m68k/m68k.c (m68k_expand_prologue): Set
current_function_static_stack_size.

From-SVN: r173260
parent c33406f5
2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
PR target/47955
* config/m68k/m68k.c (m68k_expand_prologue): Set
current_function_static_stack_size.
2011-05-02 Jan Hubicka <jh@suse.cz> 2011-05-02 Jan Hubicka <jh@suse.cz>
* lto-streamer.c (lto_streamer_cache_insert_1, * lto-streamer.c (lto_streamer_cache_insert_1,
......
...@@ -981,6 +981,10 @@ m68k_expand_prologue (void) ...@@ -981,6 +981,10 @@ m68k_expand_prologue (void)
m68k_compute_frame_layout (); m68k_compute_frame_layout ();
if (flag_stack_usage)
current_function_static_stack_size
= current_frame.size + current_frame.offset;
/* If the stack limit is a symbol, we can check it here, /* If the stack limit is a symbol, we can check it here,
before actually allocating the space. */ before actually allocating the space. */
if (crtl->limit_stack if (crtl->limit_stack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment