Commit d2e1a4c2 by DJ Delorie Committed by DJ Delorie

re PR target/42312 (config/mep/mep.c:2856: (error) Uninitialized variable: frame_size)

PR c/42312
* config/mep/mep.c (mep_expand_prologue): Set
really_need_stack_frame after frame_size is set.

From-SVN: r155072
parent 6c0eaee7
2009-12-07 DJ Delorie <dj@redhat.com>
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 <rth@redhat.com> 2009-12-07 Richard Henderson <rth@redhat.com>
PR rtl-opt/42269 PR rtl-opt/42269
...@@ -2853,7 +2853,7 @@ mep_expand_prologue (void) ...@@ -2853,7 +2853,7 @@ mep_expand_prologue (void)
int i, rss, sp_offset = 0; int i, rss, sp_offset = 0;
int reg_save_size; int reg_save_size;
int frame_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, /* We must not allow register renaming in interrupt functions,
because that invalidates the correctness of the set of call-used because that invalidates the correctness of the set of call-used
...@@ -2867,6 +2867,7 @@ mep_expand_prologue (void) ...@@ -2867,6 +2867,7 @@ mep_expand_prologue (void)
reg_save_size = mep_elimination_offset (ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM); reg_save_size = mep_elimination_offset (ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM);
frame_size = mep_elimination_offset (FRAME_POINTER_REGNUM, STACK_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); really_need_stack_frame |= mep_assign_save_slots (reg_save_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment