diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-01 10:50:14 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-01 10:50:14 +0000 |
commit | 4a4538f788d28e78ed146d939f3a15cdbe5ac971 (patch) | |
tree | 25b524a1360a0b2e4148445a56d1d461a0c28325 /gcc/emit-rtl.c | |
parent | 6127a73a6c773968e97192c2999c740af01a2637 (diff) | |
download | gcc-4a4538f788d28e78ed146d939f3a15cdbe5ac971.tar.gz |
2010-07-01 Richard Guenther <rguenther@suse.de>
* emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
types for offsets.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161659 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 4e38d89d348..6dae9962cff 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 |