diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-01 10:50:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-01 10:50:14 +0000 |
commit | e3ccfc8bb56558847d24c2cc1d911c3b31421542 (patch) | |
tree | 25b524a1360a0b2e4148445a56d1d461a0c28325 /gcc | |
parent | c689f757ebbd0607ec987626cc89a2c0e606ea42 (diff) | |
download | gcc-e3ccfc8bb56558847d24c2cc1d911c3b31421542.zip gcc-e3ccfc8bb56558847d24c2cc1d911c3b31421542.tar.gz gcc-e3ccfc8bb56558847d24c2cc1d911c3b31421542.tar.bz2 |
emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned types for offsets.
2010-07-01 Richard Guenther <rguenther@suse.de>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
types for offsets.
From-SVN: r161659
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d38eb78..e54886b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-01 Richard Guenther <rguenther@suse.de> + + * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned + types for offsets. + 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com> PR target/44732 diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 4e38d89..6dae996 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1616,10 +1616,10 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, align = MAX (align, TYPE_ALIGN (type)); else if (TREE_CODE (t) == MEM_REF) { - HOST_WIDE_INT aoff = BITS_PER_UNIT; + unsigned HOST_WIDE_INT aoff = BITS_PER_UNIT; if (host_integerp (TREE_OPERAND (t, 1), 1)) { - HOST_WIDE_INT ioff = TREE_INT_CST_LOW (TREE_OPERAND (t, 1)); + unsigned HOST_WIDE_INT ioff = TREE_INT_CST_LOW (TREE_OPERAND (t, 1)); aoff = (ioff & -ioff) * BITS_PER_UNIT; } if (TREE_CODE (TREE_OPERAND (t, 0)) == ADDR_EXPR |