OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2011 13:01:31 +0000 (13:01 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2011 13:01:31 +0000 (13:01 +0000)
* ipa-inline-analysis.c (predicate_probability): Avoid comparison
between signed and unsigned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179268 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline-analysis.c

index 1f01b9e..760713f 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
+
+       * ipa-inline-analysis.c (predicate_probability): Avoid comparison
+       between signed and unsigned.
+
 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
 
        * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
index bd4d2ea..6d37020 100644 (file)
@@ -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;