From 1f4a1e65128950be310e55b5f93bd0fc3840a7a1 Mon Sep 17 00:00:00 2001 From: dj Date: Tue, 8 Dec 2009 00:47:58 +0000 Subject: [PATCH] PR c/42312 * config/mep/mep.c (mep_expand_prologue): Set really_need_stack_frame after frame_size is set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155072 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/mep/mep.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcccc3a2bf9..a4d7594570b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-12-07 DJ Delorie + + PR c/42312 + * config/mep/mep.c (mep_expand_prologue): Set + really_need_stack_frame after frame_size is set. + 2009-12-07 Richard Henderson PR rtl-opt/42269 diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index dcf536259fa..54d21c8f1a0 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -2853,7 +2853,7 @@ mep_expand_prologue (void) int i, rss, sp_offset = 0; int reg_save_size; int frame_size; - int really_need_stack_frame = frame_size; + int really_need_stack_frame; /* We must not allow register renaming in interrupt functions, because that invalidates the correctness of the set of call-used @@ -2867,6 +2867,7 @@ mep_expand_prologue (void) reg_save_size = mep_elimination_offset (ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM); frame_size = mep_elimination_offset (FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM); + really_need_stack_frame = frame_size; really_need_stack_frame |= mep_assign_save_slots (reg_save_size); -- 2.11.0