From 0578e4172d07f7aeb5de476d57e74f6812596ad1 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 27 Sep 2011 13:01:31 +0000 Subject: [PATCH] ipa-inline-analysis.c (predicate_probability): Avoid comparison between signed and unsigned. gcc/ * ipa-inline-analysis.c (predicate_probability): Avoid comparison between signed and unsigned. From-SVN: r179268 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline-analysis.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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;