OSDN Git Service

* df.c (df_insn_table_realloc): Change parameter to unsigned.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Aug 2002 00:50:01 +0000 (00:50 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Aug 2002 00:50:01 +0000 (00:50 +0000)
* optabs.c (expand_binop): Make variable unsigned.
* simplify-rtx.c (simplify_subreg): Likewise.
* unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.

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

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

index 7bc3be9..de5c2b5 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 ff900ab..a7e862d 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 c2f9863..1e4af10 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 0565dcd..135846c 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 85dff19..445ec5f 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;