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.

Reply via email to