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

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 20 15:26:54 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105960

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

https://gcc.gnu.org/g:fe9765c0b97e6b4ce2cd226631d329fc05ba2aa5

commit r13-1180-gfe9765c0b97e6b4ce2cd226631d329fc05ba2aa5
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.

    gcc/

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

    gcc/testsuite/

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


More information about the Gcc-bugs mailing list