From: Andreas Schwab Date: Mon, 2 May 2011 16:58:32 +0000 (+0000) Subject: re PR target/47955 (gcc.dg/stack-usage-1.c fails on m68k-linux) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f69ea688b02c207333c208af8eeae69de23d40ab;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7165f840d2..c215d6b46ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-02 Andreas Schwab + + PR target/47955 + * config/m68k/m68k.c (m68k_expand_prologue): Set + current_function_static_stack_size. + 2011-05-02 Jan Hubicka * lto-streamer.c (lto_streamer_cache_insert_1, diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index c311d1289c2..b286347e44f 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -981,6 +981,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