https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88656
gerd at egidy dot de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gerd at egidy dot de --- Comment #2 from gerd at egidy dot de --- Could it be that this is a duplicate of bug 88167? I compiled a gcc 7.4.0 patched with the fix for 88167 and now get this result: push {r4, lr} mov r3, r8 mov r4, r9 push {r3, r4} mov r0, lr The patch for bug 88167 seems to be just in trunk for now. As the problem is a regression in all releases till gcc 7 I'd prefer if it could be backported into the corresponding branches.