PR target/65593
commit5ee52e91abe11464113b9dcea4c939ceeb8356ac
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2015 17:35:14 +0000 (27 17:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2015 17:35:14 +0000 (27 17:35 +0000)
tree92ca956383077c14ed2dba324842ea3408e4f0c1
parente9d9a6a293901e9286ca9b7bf5ea9ed2623d35aa
PR target/65593
* config/i386/i386.c (legitimize_pic_address): If base
is SYMBOL_REF or LABEL_REF using %rip addressing, force
it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.

* gcc.c-torture/compile/pr65593.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221741 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr65593.c [new file with mode: 0644]