emit-rtl.c (adjust_address_1, [...]): Cast value to unsigned HOST_WIDE_INT, not unsigned int.
* emit-rtl.c (adjust_address_1, offset_address): Cast value to unsigned HOST_WIDE_INT, not unsigned int. From-SVN: r51670
This commit is contained in:
parent
0864c5260d
commit
3bf1e98453
2 changed files with 18 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* emit-rtl.c (adjust_address_1, offset_address): Cast value to
|
||||
unsigned HOST_WIDE_INT, not unsigned int.
|
||||
|
||||
2002-03-31 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/6096, middle-end/6098, middle-end/6099
|
||||
|
|
|
@ -1866,8 +1866,9 @@ adjust_address_1 (memref, mode, offset, validate, adjust)
|
|||
lowest-order set bit in OFFSET, but don't change the alignment if OFFSET
|
||||
if zero. */
|
||||
if (offset != 0)
|
||||
memalign = MIN (memalign,
|
||||
(unsigned int) (offset & -offset) * BITS_PER_UNIT);
|
||||
memalign
|
||||
= MIN (memalign,
|
||||
(unsigned HOST_WIDE_INT) (offset & -offset) * BITS_PER_UNIT);
|
||||
|
||||
/* We can compute the size in a number of ways. */
|
||||
if (GET_MODE (new) != BLKmode)
|
||||
|
@ -1937,7 +1938,7 @@ offset_address (memref, offset, pow2)
|
|||
MEM_ATTRS (new)
|
||||
= get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), 0, 0,
|
||||
MIN (MEM_ALIGN (memref),
|
||||
(unsigned int) pow2 * BITS_PER_UNIT),
|
||||
(unsigned HOST_WIDE_INT) pow2 * BITS_PER_UNIT),
|
||||
GET_MODE (new));
|
||||
return new;
|
||||
}
|
||||
|
@ -3250,7 +3251,7 @@ add_insn_after (insn, after)
|
|||
}
|
||||
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (unsigned int) INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (bb = BLOCK_FOR_INSN (after)))
|
||||
{
|
||||
set_block_for_insn (insn, bb);
|
||||
|
@ -3319,7 +3320,7 @@ add_insn_before (insn, before)
|
|||
}
|
||||
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (before) < basic_block_for_insn->num_elements
|
||||
&& (unsigned int) INSN_UID (before) < basic_block_for_insn->num_elements
|
||||
&& (bb = BLOCK_FOR_INSN (before)))
|
||||
{
|
||||
set_block_for_insn (insn, bb);
|
||||
|
@ -3399,15 +3400,15 @@ remove_insn (insn)
|
|||
abort ();
|
||||
}
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (insn) < basic_block_for_insn->num_elements
|
||||
&& (unsigned int) INSN_UID (insn) < basic_block_for_insn->num_elements
|
||||
&& (bb = BLOCK_FOR_INSN (insn)))
|
||||
{
|
||||
if (INSN_P (insn))
|
||||
bb->flags |= BB_DIRTY;
|
||||
if (bb->head == insn)
|
||||
{
|
||||
/* Never ever delete the basic block note without deleting whole basic
|
||||
block. */
|
||||
/* Never ever delete the basic block note without deleting whole
|
||||
basic block. */
|
||||
if (GET_CODE (insn) == NOTE)
|
||||
abort ();
|
||||
bb->head = next;
|
||||
|
@ -3477,14 +3478,15 @@ reorder_insns (from, to, after)
|
|||
reorder_insns_nobb (from, to, after);
|
||||
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (unsigned int) INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (bb = BLOCK_FOR_INSN (after)))
|
||||
{
|
||||
rtx x;
|
||||
bb->flags |= BB_DIRTY;
|
||||
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (from) < basic_block_for_insn->num_elements
|
||||
&& ((unsigned int) INSN_UID (from)
|
||||
< basic_block_for_insn->num_elements)
|
||||
&& (bb2 = BLOCK_FOR_INSN (from)))
|
||||
{
|
||||
if (bb2->end == to)
|
||||
|
@ -4011,7 +4013,7 @@ emit_insns_after (first, after)
|
|||
return after;
|
||||
|
||||
if (basic_block_for_insn
|
||||
&& (unsigned int)INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (unsigned int) INSN_UID (after) < basic_block_for_insn->num_elements
|
||||
&& (bb = BLOCK_FOR_INSN (after)))
|
||||
{
|
||||
bb->flags |= BB_DIRTY;
|
||||
|
|
Loading…
Add table
Reference in a new issue