------- Comment #5 from sebastian dot huber at embedded-brains dot de 2010-05-12 10:03 ------- GCC 4.2.4 does not have this problem.
Function epilogue:
.L672:
ldr r0, [r7, #4]
mov sp, r7
add sp, sp, #52
@ sp needed for prologue
pop {r4, r5, r6, r7, pc}
You can see here that the mov/add and ldr instructions are in the right order.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44091
