Commit a4b5414c by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent a03e67c3
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.
......
......@@ -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)
......
......@@ -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;
......
......@@ -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)
......
......@@ -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;
......
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