Patchwork [moxie] Set current_function_static_stack_size

login
register
mail settings
Submitter Anthony Green
Date Jan. 19, 2013, 1:42 p.m.
Message ID <CACxje58P4V0nFcca1Pe3J1tZwr2SUZ7iK_uT8B-HPaRUWCBquQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/213861/
State New
Headers show

Comments

Anthony Green - Jan. 19, 2013, 1:42 p.m.
I'm committing this simple change.  It fixes a number of test cases...


2013-01-19  Anthony Green  <green@moxielogic.com>

        * config/moxie/moxie.c (moxie_expand_prologue): Set
        current_function_static_stack_size.

     {

Patch

Index: gcc/config/moxie/moxie.c
===================================================================
--- gcc/config/moxie/moxie.c    (revision 195310)
+++ gcc/config/moxie/moxie.c    (working copy)
@@ -281,6 +281,9 @@ 

   moxie_compute_frame ();

+  if (flag_stack_usage_info)
+    current_function_static_stack_size =
cfun->machine->size_for_adjusting_sp;
+
   /* Save callee-saved registers.  */
   for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)