diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-08-02 00:50:01 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-08-02 00:50:01 +0000 |
commit | a4b5414c883ff448abe86c07b5cd83e59793d32f (patch) | |
tree | 263948557c9985a1d6149cb869094c9e03d8b729 /gcc/unroll.c | |
parent | a03e67c3a3cb59fa73878624ad9565e4fed4c6ca (diff) | |
download | gcc-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/unroll.c')
-rw-r--r-- | gcc/unroll.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |