[Bug target/105960] [12/13 Regression] Crash in 32-bit mode

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 21 17:45:32 GMT 2022


--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:


commit r12-8501-g2474c8e09a93027cde39ecb6a53742142c8496ed
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jun 14 08:20:16 2022 -0700

    i386: Disallow sibcall for calling ifunc functions with PIC register

    Disallow siball when calling ifunc functions with PIC register so that
    PIC register can be restored.


            PR target/105960
            * config/i386/i386.cc (ix86_function_ok_for_sibcall): Return
            false if PIC register is used when calling ifunc functions.


            PR target/105960
            * gcc.target/i386/pr105960.c: New test.

    (cherry picked from commit fe9765c0b97e6b4ce2cd226631d329fc05ba2aa5)

More information about the Gcc-bugs mailing list