aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-08-02 00:50:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-08-02 00:50:01 +0000
commita4b5414c883ff448abe86c07b5cd83e59793d32f (patch)
tree263948557c9985a1d6149cb869094c9e03d8b729 /gcc
parenta03e67c3a3cb59fa73878624ad9565e4fed4c6ca (diff)
downloadgcc-a4b5414c883ff448abe86c07b5cd83e59793d32f.zip
gcc-a4b5414c883ff448abe86c07b5cd83e59793d32f.tar.gz
gcc-a4b5414c883ff448abe86c07b5cd83e59793d32f.tar.bz2
df.c (df_insn_table_realloc): Change parameter to unsigned.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/df.c4
-rw-r--r--gcc/optabs.c2
-rw-r--r--gcc/simplify-rtx.c2
-rw-r--r--gcc/unroll.c6
5 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7bc3be9..de5c2b5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/df.c b/gcc/df.c
index ff900ab..a7e862d 100644
--- 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)
diff --git a/gcc/optabs.c b/gcc/optabs.c
index c2f9863..1e4af10 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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;
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 0565dcd..135846c 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -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)
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 85dff19..445ec5f 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -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;