This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46779] [4.4/4.5/4.6 Regression][avr] wrong code generation for values held in R28/R29
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 May 2012 17:05:10 +0000
- Subject: [Bug target/46779] [4.4/4.5/4.6 Regression][avr] wrong code generation for values held in R28/R29
- Auto-submitted: auto-generated
- References: <bug-46779-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46779
--- Comment #17 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-05-02 17:05:10 UTC ---
Author: gjl
Date: Wed May 2 17:05:04 2012
New Revision: 187055
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187055
Log:
Backport from 2011-07-08 4.6-branch r176055.
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.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/avr/avr.c