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

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

https://gcc.gnu.org/g:2474c8e09a93027cde39ecb6a53742142c8496ed

commit r12-8501-g2474c8e09a93027cde39ecb6a53742142c8496ed
Author: H.J. Lu <hjl.to...@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.

    (cherry picked from commit fe9765c0b97e6b4ce2cd226631d329fc05ba2aa5)

Reply via email to