expr.c (get_inner_reference): Sign-extend the constant twos-complement offset before...
authorRichard Guenther <rguenther@suse.de>
Thu, 18 Aug 2011 08:33:21 +0000 (08:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 18 Aug 2011 08:33:21 +0000 (08:33 +0000)
commit97919ae7b65c192b0fdb6dfa6abdebd63a3f4ba9
tree72321f7542701e8f11e627c812fb466857e6393f
parent55715096b51c2cb7e9a9cd03bd562301b7867051
expr.c (get_inner_reference): Sign-extend the constant twos-complement offset before doing arbitrary...

2011-08-18  Richard Guenther  <rguenther@suse.de>

* expr.c (get_inner_reference): Sign-extend the constant
twos-complement offset before doing arbitrary precision
arithmetic on it.
* tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
(get_constraint_for_1): Pass the offset of a MEM_REF unchanged
to get_constraint_for_ptr_offset.

From-SVN: r177847
gcc/ChangeLog
gcc/expr.c
gcc/tree-ssa-structalias.c