This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46779] wrong code generation for array access
- 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: Fri, 8 Jul 2011 17:47:00 +0000
- Subject: [Bug target/46779] wrong code generation for array access
- Auto-submitted: auto-generated
- References: <bug-46779-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46779
--- Comment #12 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-08 17:46:42 UTC ---
Author: gjl
Date: Fri Jul 8 17:46:38 2011
New Revision: 176055
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176055
Log:
PR target/46779
Backport from mainline SVN 176053.
2011-07-08 Georg-Johann Lay
* 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_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/config/avr/avr.c