diff options
author | gjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-21 10:10:46 +0000 |
---|---|---|
committer | gjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-21 10:10:46 +0000 |
commit | 3bdae8d2e87e14b908f8fc60aa96c2030140ab32 (patch) | |
tree | 50ae1d5cfe91fbd874bc9ea33926d28e9a38d373 | |
parent | ec15ec364cc3422cb5960abe812c4df3d8f9128c (diff) | |
download | gcc-3bdae8d2e87e14b908f8fc60aa96c2030140ab32.tar.gz |
PR target/71103
* config/avr/avr.md (movqi): Only handle loading subreg:qi of
constant addresses if can_create_pseudo_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237635 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/avr/avr.md | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14b8030ec69..7927454fdba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index aac830154f0..98951865b1e 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -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 |