re PR target/71103 (avr-gcc crashes with unrecognizable insn error)

PR target/71103
	* config/avr/avr.md (movqi): Only handle loading subreg:qi of
	constant addresses if can_create_pseudo_p.

From-SVN: r237635
This commit is contained in:
Georg-Johann Lay 2016-06-21 10:10:46 +00:00 committed by Georg-Johann Lay
parent 0ad84f34fc
commit 4e1eac56b4
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2016-06-21 Georg-Johann Lay <avr@gjlay.de>
PR target/71103
* config/avr/avr.md (movqi): Only handle loading subreg:qi of
constant addresses if can_create_pseudo_p.
2016-06-21 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/71588

View file

@ -643,8 +643,9 @@
if (QImode == <MODE>mode
&& SUBREG_P (src)
&& CONSTANT_ADDRESS_P (SUBREG_REG (src)))
{
&& CONSTANT_ADDRESS_P (SUBREG_REG (src))
&& can_create_pseudo_p())
{
// store_bitfield may want to store a SYMBOL_REF or CONST in a
// structure that's represented as PSImode. As the upper 16 bits
// of PSImode cannot be expressed as an HImode subreg, the rhs is