OSDN Git Service

Backport from mainline
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 16:01:46 +0000 (16:01 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 16:01:46 +0000 (16:01 +0000)
commitbb3af478d7d77c52149efa0513ea036cff15ad49
tree90aea92242b962b07d4d2f25966dcfc71a1f47a0
parentf7fb83549c47d8c9fa7452e2648c3604f639db69
Backport from mainline
2013-11-18  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
ix86_address_subreg_operand.  Move subreg checks to
ix86_validate_address_register.  Move address override check to
ix86_legitimate_address_p.
(ix86_validate_address_register): New function.
(ix86_legitimate_address_p): Call ix86_validate_address_register
to validate base and index registers.  Add address override check
from ix86_decompose_address.
(ix86_decompose_address): Remove.

Backport from mainline
2013-11-17  Uros Bizjak  <ubizjak@gmail.com>

PR target/59153
* config/i386/i386.c (ix86_address_subreg_operand): Do not
reject non-integer subregs.
(ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
Move check for invalid x32 constant addresses ...
(ix86_legitimate_address_p): ... here.

Bacport from mainline
2012-03-13  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
addresses only when %reg is not in word mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@205122 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c