df.c (df_insn_table_realloc): Change parameter to unsigned.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 2 Aug 2002 00:50:01 +0000 (00:50 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 2 Aug 2002 00:50:01 +0000 (00:50 +0000)
* df.c (df_insn_table_realloc): Change parameter to unsigned.
* optabs.c (expand_binop): Make variable unsigned.
* simplify-rtx.c (simplify_subreg): Likewise.
* unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.

From-SVN: r55960

gcc/ChangeLog
gcc/df.c
gcc/optabs.c
gcc/simplify-rtx.c
gcc/unroll.c

index 7bc3be9eb5e8efb61437d30565357c7cbf1dc108..de5c2b5d6eb3f92cb61e5bf11db1d1c1a8da86a1 100644 (file)
@@ -1,3 +1,10 @@
+2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * df.c (df_insn_table_realloc): Change parameter to unsigned.
+       * optabs.c (expand_binop): Make variable unsigned.
+       * simplify-rtx.c (simplify_subreg): Likewise.
+       * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
+
 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
 
        * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
index ff900ab70423ff72958aa2a65629746fe37bd19e..a7e862d115c8a0621383a7d4698a789eb5e141ca 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -182,7 +182,7 @@ static void df_reg_table_realloc PARAMS((struct df *, int));
 #if 0
 static void df_def_table_realloc PARAMS((struct df *, int));
 #endif
-static void df_insn_table_realloc PARAMS((struct df *, int));
+static void df_insn_table_realloc PARAMS((struct df *, unsigned int));
 static void df_bitmaps_alloc PARAMS((struct df *, int));
 static void df_bitmaps_free PARAMS((struct df *, int));
 static void df_free PARAMS((struct df *));
@@ -299,7 +299,7 @@ static inline bool read_modify_subreg_p PARAMS ((rtx));
 static void
 df_insn_table_realloc (df, size)
      struct df *df;
-     int size;
+     unsigned int size;
 {
   size++;
   if (size <= df->insn_size)
index c2f9863ceb67c344f8698b1cc358bcb9dae1dd80..1e4af105f4fb83bab88956c08e36a36ad66e7680 100644 (file)
@@ -1219,7 +1219,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
     {
       unsigned int i;
       optab otheroptab = binoptab == add_optab ? sub_optab : add_optab;
-      int nwords = GET_MODE_BITSIZE (mode) / BITS_PER_WORD;
+      const unsigned int nwords = GET_MODE_BITSIZE (mode) / BITS_PER_WORD;
       rtx carry_in = NULL_RTX, carry_out = NULL_RTX;
       rtx xop0, xop1, xtarget;
 
index 0565dcd32b888dcd0c0f92a85a92a8d66c83c0a1..135846ca82fa926ae3fa8b910870ffac94f80bd3 100644 (file)
@@ -2280,7 +2280,7 @@ simplify_subreg (outermode, op, innermode, byte)
   if (GET_CODE (op) == CONST_VECTOR)
     {
       int elt_size = GET_MODE_SIZE (GET_MODE_INNER (innermode));
-      int offset = byte / elt_size;
+      const unsigned int offset = byte / elt_size;
       rtx elt;
 
       if (GET_MODE_INNER (innermode) == outermode)
index 85dff19284fe692e063f277e4b0d7217f16571af..445ec5fc1a7d6f43f24d3d2696b37e0139d5c8f1 100644 (file)
@@ -343,8 +343,8 @@ unroll_loop (loop, insn_count, strength_reduce_p)
     }
   else if (loop_info->n_iterations > 0
           /* Avoid overflow in the next expression.  */
-          && loop_info->n_iterations < MAX_UNROLLED_INSNS
-          && loop_info->n_iterations * insn_count < MAX_UNROLLED_INSNS)
+          && loop_info->n_iterations < (unsigned) MAX_UNROLLED_INSNS
+          && loop_info->n_iterations * insn_count < (unsigned) MAX_UNROLLED_INSNS)
     {
       unroll_number = loop_info->n_iterations;
       unroll_type = UNROLL_COMPLETELY;
@@ -374,7 +374,7 @@ unroll_loop (loop, insn_count, strength_reduce_p)
       for (i = 3; i >= 0; i--)
        while (factors[i].count--)
          {
-           if (temp * factors[i].factor < MAX_UNROLLED_INSNS)
+           if (temp * factors[i].factor < (unsigned) MAX_UNROLLED_INSNS)
              {
                unroll_number *= factors[i].factor;
                temp *= factors[i].factor;