i386.c (legitimate_pic_address_disp_p): Allow interger-constant displacement for UNSPEC_PCREL.
* config/i386/i386.c (legitimate_pic_address_disp_p): Allow interger-constant displacement for UNSPEC_PCREL. From-SVN: r184313
This commit is contained in:
parent
3db93c89bc
commit
525b3f60ff
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-02-16 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
* config/i386/i386.c (legitimate_pic_address_disp_p): Allow
|
||||
interger-constant displacement for UNSPEC_PCREL.
|
||||
|
||||
2012-02-16 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR rtl-optimization/52208
|
||||
|
|
|
@ -11823,6 +11823,13 @@ legitimate_pic_address_disp_p (rtx disp)
|
|||
break;
|
||||
if (GET_CODE (op0) == LABEL_REF)
|
||||
return true;
|
||||
if (GET_CODE (op0) == CONST
|
||||
&& GET_CODE (XEXP (op0, 0)) == UNSPEC
|
||||
&& XINT (XEXP (op0, 0), 1) == UNSPEC_PCREL)
|
||||
return true;
|
||||
if (GET_CODE (op0) == UNSPEC
|
||||
&& XINT (op0, 1) == UNSPEC_PCREL)
|
||||
return true;
|
||||
if (GET_CODE (op0) != SYMBOL_REF)
|
||||
break;
|
||||
/* FALLTHRU */
|
||||
|
|
Loading…
Add table
Reference in a new issue