+2012-05-07 Georg-Johann Lay <avr@gjlay.de>
+
+ * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
+ down to plus_constant.
+ (expand_epilogue): Ditto.
+
2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
* postreload.c (reload_cse_regs): Make static.
gen_rtx_SET (VOIDmode, fp, stack_pointer_rtx));
}
- insn = emit_move_insn (my_fp, plus_constant (Pmode, my_fp, -size));
+ insn = emit_move_insn (my_fp, plus_constant (GET_MODE (my_fp),
+ my_fp, -size));
if (frame_pointer_needed)
{
RTX_FRAME_RELATED_P (insn) = 1;
if (!frame_pointer_needed)
emit_move_insn (fp, stack_pointer_rtx);
- emit_move_insn (my_fp, plus_constant (Pmode, my_fp, size));
+ emit_move_insn (my_fp, plus_constant (GET_MODE (my_fp), my_fp, size));
/* Copy to stack pointer. */