Commit 9f8d69ee by Stuart Henderson

2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>

        From Jie Zhang
        * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.

From-SVN: r173364
parent 5b56b9d2
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.
......
......@@ -1341,8 +1341,10 @@ bfin_expand_prologue (void)
= 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));
......@@ -1379,6 +1381,7 @@ bfin_expand_prologue (void)
}
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);
......
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