[Bug target/88656] [7/8/9/10 Regression] lr clobbered by thumb prologue before __builtin_return_address(0) reads from it

gerd at egidy dot de gcc-bugzilla@gcc.gnu.org
Sat May 25 12:01:00 GMT 2019


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.


More information about the Gcc-bugs mailing list