mn10300.c (mn10300_expand_prologue): Report stack usage if requested.
authorNick Clifton <nickc@redhat.com>
Tue, 7 Aug 2012 10:27:37 +0000 (10:27 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 7 Aug 2012 10:27:37 +0000 (10:27 +0000)
* config/mn10300/mn10300.c (mn10300_expand_prologue): Report
stack usage if requested.

From-SVN: r190198

gcc/ChangeLog
gcc/config/mn10300/mn10300.c

index e87e0d4f091755218861112b65c41592bf3975f5..b05788140a5ae1850573ade13c66a7852e870ae9 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-07  Nick Clifton  <nickc@redhat.com>
+
+       * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
+       stack usage if requested.
+
 2012-08-06  Cary Coutant  <ccoutant@google.com>
 
        * cgraphunit.c (assemble_thunk): Add source line info.
index a8a4050ebdfa4da0dbd40b2b767595ccbd19c0a2..769e883f01bd678788289a2105e44647fd56819b 100644 (file)
@@ -744,6 +744,9 @@ mn10300_expand_prologue (void)
 {
   HOST_WIDE_INT size = mn10300_frame_size ();
 
+  if (flag_stack_usage_info)
+    current_function_static_stack_size = size;
+
   /* If we use any of the callee-saved registers, save them now.  */
   mn10300_gen_multiple_store (mn10300_get_live_callee_saved_regs (NULL));