rx.c (rx_expand_prologue): Set stack use information, if requested.
authorNick Clifton <nickc@redhat.com>
Wed, 11 Apr 2012 12:49:22 +0000 (12:49 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 11 Apr 2012 12:49:22 +0000 (12:49 +0000)
* config/rx/rx.c (rx_expand_prologue): Set stack use
information, if requested.

From-SVN: r186314

gcc/ChangeLog
gcc/config/rx/rx.c

index c7506a7..ec1458c 100644 (file)
@@ -3,6 +3,8 @@
        * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
        information, if requested.
 
+       * config/rx/rx.c (rx_expand_prologue): Likewise.
+
 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
            Michael Matz  <matz@suse.de>
 
index 655f318..e7483e9 100644 (file)
@@ -1606,6 +1606,9 @@ rx_expand_prologue (void)
 
   rx_get_stack_layout (& low, & high, & mask, & frame_size, & stack_size);
 
+  if (flag_stack_usage_info)
+    current_function_static_stack_size = frame_size + stack_size;
+
   /* If we use any of the callee-saved registers, save them now.  */
   if (mask)
     {