This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34789] [avr] sometimes the compiler keeps addresses in registers unnecessarily
- 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: Sun, 09 Oct 2011 20:49:20 +0000
- Subject: [Bug target/34789] [avr] sometimes the compiler keeps addresses in registers unnecessarily
- Auto-submitted: auto-generated
- References: <bug-34789-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34789
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|avr-*-* |avr
Status|NEW |RESOLVED
CC| |gjl at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-10-09 20:49:20 UTC ---
This is compiled with avr-gcc-4.7.0 -Os -mmcu=avr4 as expected:
bar:
lds r30,a
lds r31,a+1
lsl r30
rol r31
subi r30,lo8(-(data))
sbci r31,hi8(-(data))
ld r24,Z
ldd r25,Z+1
rcall foo
movw r30,r24
lsl r30
rol r31
subi r30,lo8(-(data))
sbci r31,hi8(-(data))
ld r24,Z
ldd r25,Z+1
rjmp foo
Thus closing this PR as RESOLVED. For the tail call, see PR34790.