------- Comment #3 from jon at beniston dot com  2010-01-05 12:13 -------
GCC 4.1.2 seems to produce the same code.

       mov     r2, #0
       mov     r3, r0
       strb    r2, [r3], #1
       strb    r2, [r0, #1]
       add     r0, r3, #2
       @ lr needed for prologue
       strb    r2, [r3, #1]
       bx      lr
       .size   func, .-func
       .ident  "GCC: (GNU) 4.1.2"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42612

Reply via email to