OSDN Git Service

PR target/47955
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2011 16:58:32 +0000 (16:58 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2011 16:58:32 +0000 (16:58 +0000)
* gcc/config/m68k/m68k.c (m68k_expand_prologue): Set
current_function_static_stack_size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173260 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/m68k.c

index c7165f8..c215d6b 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * lto-streamer.c (lto_streamer_cache_insert_1,
index c311d12..b286347 100644 (file)
@@ -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