[backport from gcc-4.7/trunk ] gcc/ 2011-05-02 Andreas Schwab PR target/47955 * config/m68k/m68k.c (m68k_expand_prologue): Set current_function_static_stack_size. --- gcc-4.6.0/gcc/config/m68k/m68k.c.~1~ 2010-12-12 15:03:55.000000000 +0100 +++ gcc-4.6.0/gcc/config/m68k/m68k.c 2011-05-14 14:11:48.000000000 +0200 @@ -1057,6 +1057,10 @@ m68k_expand_prologue (void) 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, before actually allocating the space. */ if (crtl->limit_stack