+2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
+
+ From Jie Zhang
+ * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
+
2011-05-04 Nick Clifton <nickc@redhat.com>
* config/mn10300/mn10300.c: Include cfgloop.h.
= bfin_initial_elimination_offset (ARG_POINTER_REGNUM,
STACK_POINTER_REGNUM);
rtx lim = crtl->limit_stack ? stack_limit_rtx : NULL_RTX;
+ rtx tmp = gen_rtx_REG (Pmode, REG_R3);
rtx p2reg = gen_rtx_REG (Pmode, REG_P2);
+ emit_move_insn (tmp, p2reg);
if (!lim)
{
emit_move_insn (p2reg, gen_int_mode (0xFFB00000, SImode));
}
emit_insn (gen_compare_lt (bfin_cc_rtx, spreg, lim));
emit_insn (gen_trapifcc ());
+ emit_move_insn (p2reg, tmp);
}
expand_prologue_reg_save (spreg, all, false);