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

--- Comment #6 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Jan 22 14:53:41 2019
New Revision: 268152

URL: https://gcc.gnu.org/viewcvs?rev=268152&root=gcc&view=rev
Log:
i386: Load external function address via GOT slot

With noplt attribute, we load the external function address via the GOT
slot so that linker won't create an PLT entry for extern function address.

gcc/

        PR target/88954
        * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
        noplt attribute.

gcc/testsuite/

        PR target/88954
        * gcc.target/i386/pr88954-1.c: New test.
        * gcc.target/i386/pr88954-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr88954-1.c
    trunk/gcc/testsuite/gcc.target/i386/pr88954-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to