Commit 4e15cee6 by Georg-Johann Lay Committed by Georg-Johann Lay

re PR target/51050 ([AVR, attiny26] ICE: invalid rtl sharing found in the insn)

	PR target/51050
	* config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
	(avr_prologue_setup_frame): Ditto.

From-SVN: r182363
parent 0c1e1df8
2011-12-15 Georg-Johann Lay <avr@gjlay.de>
PR target/51050
* config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
(avr_prologue_setup_frame): Ditto.
2011-12-15 Jakub Jelinek <jakub@redhat.com> 2011-12-15 Jakub Jelinek <jakub@redhat.com>
PR debug/51517 PR debug/51517
...@@ -994,7 +994,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set) ...@@ -994,7 +994,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
/* The high byte (r29) does not change: /* The high byte (r29) does not change:
Prefer SUBI (1 cycle) over ABIW (2 cycles, same size). */ Prefer SUBI (1 cycle) over ABIW (2 cycles, same size). */
my_fp = simplify_gen_subreg (QImode, fp, Pmode, 0); my_fp = all_regs_rtx[FRAME_POINTER_REGNUM];
} }
/************ Method 1: Adjust frame pointer ************/ /************ Method 1: Adjust frame pointer ************/
...@@ -1292,7 +1292,7 @@ expand_epilogue (bool sibcall_p) ...@@ -1292,7 +1292,7 @@ expand_epilogue (bool sibcall_p)
/* The high byte (r29) does not change: /* The high byte (r29) does not change:
Prefer SUBI (1 cycle) over SBIW (2 cycles). */ Prefer SUBI (1 cycle) over SBIW (2 cycles). */
my_fp = simplify_gen_subreg (QImode, fp, Pmode, 0); my_fp = all_regs_rtx[FRAME_POINTER_REGNUM];
} }
/********** Method 1: Adjust fp register **********/ /********** Method 1: Adjust fp register **********/
......
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