This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42612] post-increment addressing not used
- From: "jon at beniston dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2010 12:13:04 -0000
- Subject: [Bug rtl-optimization/42612] post-increment addressing not used
- References: <bug-42612-10439@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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