diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2011-07-21 15:03:02 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2011-07-21 15:03:02 +0200 |
commit | 7c53a140d9542cb965915ad1d1bb75cd8ce244f5 (patch) | |
tree | ca2b717aeeecf878837d1abf00e7b5fe02aa532d /gcc | |
parent | 7f3ff782991c13d787b67918e965c8a1dd620935 (diff) | |
download | gcc-7c53a140d9542cb965915ad1d1bb75cd8ce244f5.zip gcc-7c53a140d9542cb965915ad1d1bb75cd8ce244f5.tar.gz gcc-7c53a140d9542cb965915ad1d1bb75cd8ce244f5.tar.bz2 |
i386.c (ix86_decompose_address): Reject all but register operands and DImode hard registers in index.
* config/i386/i386.c (ix86_decompose_address): Reject all but
register operands and DImode hard registers in index.
From-SVN: r176565
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
2 files changed, 13 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44f962a..a1aa3eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,18 +1,20 @@ +2011-07-21 Uros Bizjak <ubizjak@gmail.com> + + * config/i386/i386.c (ix86_decompose_address): Reject all but + register operands and DImode hard registers in index. + 2011-07-21 Kai Tietz <ktietz@redhat.com> * fold-const.c (fold_unary_loc): Preserve indirect comparison cast to none-boolean type. * tree-ssa.c (useless_type_conversion_p): Preserve cast from/to boolean-type. - * gimplify.c (gimple_boolify): Handle boolification - of comparisons. - (gimplify_expr): Boolifiy non aggregate-typed - comparisons. + * gimplify.c (gimple_boolify): Handle boolification of comparisons. + (gimplify_expr): Boolifiy non aggregate-typed comparisons. * tree-cfg.c (verify_gimple_comparison): Check result type of comparison expression. - * tree-ssa-forwprop.c (forward_propagate_comparison): - Adjust test of condition result and disallow type-cast - sinking into comparison. + * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test + of condition result and disallow type-cast sinking into comparison. 2011-07-21 Richard Guenther <rguenther@suse.de> @@ -31,7 +33,7 @@ in last to first, or first to last order. 2011-07-21 Georg-Johann Lay <avr@gjlay.de> - + * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0. 2011-07-20 H.J. Lu <hongjiu.lu@intel.com> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 403f312..da6c888 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -11203,7 +11203,9 @@ ix86_decompose_address (rtx addr, struct ix86_address *out) ; /* Allow only subregs of DImode hard regs. */ else if (GET_CODE (index) == SUBREG - && !register_no_elim_operand (SUBREG_REG (index), DImode)) + && register_no_elim_operand (SUBREG_REG (index), DImode)) + ; + else return 0; } |