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
This commit is contained in:
parent
c689f757eb
commit
e3ccfc8bb5
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue