Commit 5460015d by Jim Wilson

(emit_stack_save): At end, call validize_mem when inside sequence.

From-SVN: r4104
parent b7647895
...@@ -748,21 +748,26 @@ emit_stack_save (save_level, psave, after) ...@@ -748,21 +748,26 @@ emit_stack_save (save_level, psave, after)
abort (); abort ();
} }
if (sa != 0)
sa = validize_mem (sa);
if (after) if (after)
{ {
rtx seq; rtx seq;
start_sequence (); start_sequence ();
/* We must validize inside the sequence, to ensure that any instructions
created by the validize call also get moved to the right place. */
if (sa != 0)
sa = validize_mem (sa);
emit_insn (fcn (sa, stack_pointer_rtx)); emit_insn (fcn (sa, stack_pointer_rtx));
seq = gen_sequence (); seq = gen_sequence ();
end_sequence (); end_sequence ();
emit_insn_after (seq, after); emit_insn_after (seq, after);
} }
else else
{
if (sa != 0)
sa = validize_mem (sa);
emit_insn (fcn (sa, stack_pointer_rtx)); emit_insn (fcn (sa, stack_pointer_rtx));
}
} }
/* Restore the stack pointer for the purpose in SAVE_LEVEL. SA is the save /* Restore the stack pointer for the purpose in SAVE_LEVEL. SA is the save
......
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