diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f01b9ef441..760713f288f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-09-27 Richard Sandiford + + * ipa-inline-analysis.c (predicate_probability): Avoid comparison + between signed and unsigned. + 2011-09-27 Ira Rosen * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index bd4d2eaf144..6d37020d6dd 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -482,8 +482,8 @@ predicate_probability (conditions conds, i2 - predicate_first_dynamic_condition); if (c->code == CHANGED && (c->operand_num - < VEC_length (inline_param_summary_t, - inline_param_summary))) + < (int) VEC_length (inline_param_summary_t, + inline_param_summary))) { int iprob = VEC_index (inline_param_summary_t, inline_param_summary, @@ -2353,8 +2353,8 @@ remap_edge_change_prob (struct cgraph_edge *inlined_edge, struct ipa_jump_func *jfunc = ipa_get_ith_jump_func (args, i); if (jfunc->type == IPA_JF_PASS_THROUGH && (jfunc->value.pass_through.formal_id - < VEC_length (inline_param_summary_t, - inlined_es->param))) + < (int) VEC_length (inline_param_summary_t, + inlined_es->param))) { int prob1 = VEC_index (inline_param_summary_t, es->param, i)->change_prob;