OSDN Git Service

* emit-rtl.c (adjust_address_1, offset_address): Cast value to
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Mar 2002 19:48:22 +0000 (19:48 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Mar 2002 19:48:22 +0000 (19:48 +0000)
unsigned HOST_WIDE_INT, not unsigned int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51670 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c

index 2bf0bef..a3e1d9b 100644 (file)
@@ -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
index 7f1e92b..3fcb172 100644 (file)
@@ -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;