avr.c (avr_prologue_setup_frame): Fix mode passed down to plus_constant.

* config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
	down to plus_constant.
	(expand_epilogue): Ditto.

From-SVN: r187259
This commit is contained in:
Georg-Johann Lay 2012-05-07 16:31:44 +00:00 committed by Georg-Johann Lay
parent 8bb91f498b
commit 55796e9021
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
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.

View file

@ -996,7 +996,8 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
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;
@ -1324,7 +1325,7 @@ expand_epilogue (bool sibcall_p)
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. */