]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/mn10300/mn10300.c (mn10300_expand_prologue): Report
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Aug 2012 10:27:37 +0000 (10:27 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Aug 2012 10:27:37 +0000 (10:27 +0000)
stack usage if requested.

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

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));