Workaround PR middle-end/55142
commit6c50dd1bc1127198f36eaeac9d4dd78406e23820
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Nov 2012 18:35:32 +0000 (13 18:35 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Nov 2012 18:35:32 +0000 (13 18:35 +0000)
treee85c5539e0ff5c7572a0fa5cadd12da746ddc2fc
parent8c94ea57c523de90bc775a326f50c17d1a987113
Workaround PR middle-end/55142

gcc/

2012-11-13  Eric Botcazou  <ebotcazou@adacore.com>
    H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/55142
* config/i386/i386.c (legitimize_pic_address): Properly handle
REG + CONST.
(ix86_print_operand_address): Set code to 'k' when forcing
addr32 prefix.  For x32, zero-extend negative displacement if
it < -16*1024*1024.

gcc/testsuite/

2012-11-13  H.J. Lu  <hongjiu.lu@intel.com>

PR middle-end/55142
* gcc.target/i386/pr55142-1.c: New file.
* gcc.target/i386/pr55142-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193483 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr55142-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr55142-2.c [new file with mode: 0644]