This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
m68k: support -fstack-usage
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 02 May 2011 18:58:53 +0200
- Subject: m68k: support -fstack-usage
Checked into trunk.
Andreas.
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.
Index: gcc/config/m68k/m68k.c
===================================================================
--- gcc/config/m68k/m68k.c (revision 173259)
+++ gcc/config/m68k/m68k.c (working copy)
@@ -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
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."