http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50513
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2011-09-25 19:22:14 UTC --- Native builds of current trunk (mine is gcc-4.7-20110924 == r179148) also fail in the same way, when configured with --disable-build-poststage1-with-cxx. The reason is that PR50012 (a C++ FE diagnostics bug) causes some warnings in new code to go undetected, until someone does a build in proper C mode. Anyway, for this PR the fix should be: --- gcc-4.7-20110924/gcc/ipa-inline-analysis.c.~1~ 2011-09-23 19:30:34.000000000 +0200 +++ gcc-4.7-20110924/gcc/ipa-inline-analysis.c 2011-09-25 20:39:45.000000000 +0200 @@ -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_ed 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;