re PR target/47955 (gcc.dg/stack-usage-1.c fails on m68k-linux)
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 2 May 2011 16:58:32 +0000 (16:58 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Mon, 2 May 2011 16:58:32 +0000 (16:58 +0000)
PR target/47955
* gcc/config/m68k/m68k.c (m68k_expand_prologue): Set
current_function_static_stack_size.

From-SVN: r173260

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

index c7165f840d2f3c88c2260a4dc0a171f294938f20..c215d6b46ce9ddf0d2dad24ba0ca952b6983d411 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 c311d1289c24393737d8eb8cfd17b5d671fbe4d8..b286347e44fc32c6128ae6f60834310f0e56b630 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