re PR target/46779 ([avr] wrong code generation for values held in R28/R29)
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 8 Jul 2011 17:38:39 +0000 (17:38 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 8 Jul 2011 17:38:39 +0000 (17:38 +0000)
commit3e4f84847dbc75ef3337d1e3e5dc2b9fe1495035
tree352b72fa59c3d530671bbc2af3247dd540259625
parent859f6cb4c614aa98677de15733634ea58d03ed87
re PR target/46779 ([avr] wrong code generation for values held in R28/R29)

PR target/46779
* config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
In particular, allow 8-bit values in r28 and r29.
(avr_hard_regno_scratch_ok): Disallow any register that might be
part of the frame pointer.
(avr_hard_regno_rename_ok): Same.
(avr_legitimate_address_p): Don't allow SUBREGs.

From-SVN: r176053
gcc/ChangeLog
gcc/config/avr/avr.c