r237720 - in /trunk/gcc: ChangeLog config/i386/...
uros@gcc.gnu.org
uros@gcc.gnu.org
Wed Jun 22 22:06:00 GMT 2016
Author: uros
Date: Wed Jun 22 22:06:56 2016
New Revision: 237720
URL: https://gcc.gnu.org/viewcvs?rev=237720&root=gcc&view=rev
Log:
PR target/67400
* config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
* config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
(ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
ix86_force_load_from_GOT_p returns true.
(ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
ix86_force_load_from_GOT_p returns true.
(ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
ix86_force_load_from_GOT_p returns true.
(ix86_expand_move): Load the external function address via the
GOT slot if ix86_force_load_from_GOT_p returns true.
* config/i386/predicates.md (x86_64_immediate_operand): Return
false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
(x86_64_zext_immediate_operand): Ditto.
testsuite/ChangeLog:
PR target/67400
* gcc.target/i386/pr67400-1.c: New test.
* gcc.target/i386/pr67400-2.c: Likewise.
* gcc.target/i386/pr67400-3.c: Likewise.
* gcc.target/i386/pr67400-4.c: Likewise.
* gcc.target/i386/pr67400-5.c: Likewise.
* gcc.target/i386/pr67400-6.c: Likewise.
* gcc.target/i386/pr67400-7.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr67400-1.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-2.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-3.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-4.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-5.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-6.c
trunk/gcc/testsuite/gcc.target/i386/pr67400-7.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386-protos.h
trunk/gcc/config/i386/i386.c
trunk/gcc/config/i386/predicates.md
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list