Commit 3bf1e984 by Richard Kenner Committed by Richard Kenner

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
parent 0864c526
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> 2002-03-31 Jakub Jelinek <jakub@redhat.com>
PR middle-end/6096, middle-end/6098, middle-end/6099 PR middle-end/6096, middle-end/6098, middle-end/6099
......
...@@ -1866,8 +1866,9 @@ adjust_address_1 (memref, mode, offset, validate, adjust) ...@@ -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 lowest-order set bit in OFFSET, but don't change the alignment if OFFSET
if zero. */ if zero. */
if (offset != 0) if (offset != 0)
memalign = MIN (memalign, memalign
(unsigned int) (offset & -offset) * BITS_PER_UNIT); = MIN (memalign,
(unsigned HOST_WIDE_INT) (offset & -offset) * BITS_PER_UNIT);
/* We can compute the size in a number of ways. */ /* We can compute the size in a number of ways. */
if (GET_MODE (new) != BLKmode) if (GET_MODE (new) != BLKmode)
...@@ -1937,7 +1938,7 @@ offset_address (memref, offset, pow2) ...@@ -1937,7 +1938,7 @@ offset_address (memref, offset, pow2)
MEM_ATTRS (new) MEM_ATTRS (new)
= get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), 0, 0, = get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), 0, 0,
MIN (MEM_ALIGN (memref), MIN (MEM_ALIGN (memref),
(unsigned int) pow2 * BITS_PER_UNIT), (unsigned HOST_WIDE_INT) pow2 * BITS_PER_UNIT),
GET_MODE (new)); GET_MODE (new));
return new; return new;
} }
...@@ -3250,7 +3251,7 @@ add_insn_after (insn, after) ...@@ -3250,7 +3251,7 @@ add_insn_after (insn, after)
} }
if (basic_block_for_insn 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 = BLOCK_FOR_INSN (after)))
{ {
set_block_for_insn (insn, bb); set_block_for_insn (insn, bb);
...@@ -3319,7 +3320,7 @@ add_insn_before (insn, before) ...@@ -3319,7 +3320,7 @@ add_insn_before (insn, before)
} }
if (basic_block_for_insn 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))) && (bb = BLOCK_FOR_INSN (before)))
{ {
set_block_for_insn (insn, bb); set_block_for_insn (insn, bb);
...@@ -3399,15 +3400,15 @@ remove_insn (insn) ...@@ -3399,15 +3400,15 @@ remove_insn (insn)
abort (); abort ();
} }
if (basic_block_for_insn 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))) && (bb = BLOCK_FOR_INSN (insn)))
{ {
if (INSN_P (insn)) if (INSN_P (insn))
bb->flags |= BB_DIRTY; bb->flags |= BB_DIRTY;
if (bb->head == insn) if (bb->head == insn)
{ {
/* Never ever delete the basic block note without deleting whole basic /* Never ever delete the basic block note without deleting whole
block. */ basic block. */
if (GET_CODE (insn) == NOTE) if (GET_CODE (insn) == NOTE)
abort (); abort ();
bb->head = next; bb->head = next;
...@@ -3477,14 +3478,15 @@ reorder_insns (from, to, after) ...@@ -3477,14 +3478,15 @@ reorder_insns (from, to, after)
reorder_insns_nobb (from, to, after); reorder_insns_nobb (from, to, after);
if (basic_block_for_insn 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 = BLOCK_FOR_INSN (after)))
{ {
rtx x; rtx x;
bb->flags |= BB_DIRTY; bb->flags |= BB_DIRTY;
if (basic_block_for_insn 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))) && (bb2 = BLOCK_FOR_INSN (from)))
{ {
if (bb2->end == to) if (bb2->end == to)
...@@ -4011,7 +4013,7 @@ emit_insns_after (first, after) ...@@ -4011,7 +4013,7 @@ emit_insns_after (first, after)
return after; return after;
if (basic_block_for_insn 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 = BLOCK_FOR_INSN (after)))
{ {
bb->flags |= BB_DIRTY; bb->flags |= BB_DIRTY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment