avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET to computed stack_usage.
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Sat, 21 May 2016 10:54:09 +0000 (10:54 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Sat, 21 May 2016 10:54:09 +0000 (13:54 +0300)
* config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
to computed stack_usage.

From-SVN: r236559

gcc/ChangeLog
gcc/config/avr/avr.c

index 8652f5c2911e938cc57d6b6341d6edf9e23544d1..7a9541406b9863a8fb0d37aea3cdf81e7433c0e9 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
+       to computed stack_usage.
+
 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
 
        PR target/71103
index 8de39e0a660668fccd7bc1257ce4d7fb55f35ede..ba5cd914e55cea020be46def8282a6081ad18a03 100644 (file)
@@ -1484,7 +1484,7 @@ avr_expand_prologue (void)
   avr_prologue_setup_frame (size, set);
 
   if (flag_stack_usage_info)
-    current_function_static_stack_size = cfun->machine->stack_usage;
+    current_function_static_stack_size = cfun->machine->stack_usage + INCOMING_FRAME_SP_OFFSET;
 }