re PR tree-optimization/50005 (ipa-inline-analysis.c:1876:41: error: comparison betwe...
authorMikael Pettersson <mikpe@it.uu.se>
Mon, 8 Aug 2011 09:59:02 +0000 (11:59 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 8 Aug 2011 09:59:02 +0000 (09:59 +0000)
2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>

        PR tree-optimization/50005
        * ipa-inline-analysis (remap_predicate): Add cast to
        silence signed/unsigned comparison warning.

From-SVN: r177557

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

index cda57dd131adcb464ed53a53742300416032756d..227202ce36428456b14628626a2efb17cac12bef 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
+
+       PR tree-optimization/50005
+       * ipa-inline-analysis (remap_predicate): Add cast to
+       silence signed/unsigned comparison warning.
+
 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * modulo-sched.c (get_sched_window): Use a table for the debug output.
index 1055d523fd21f35da60970ef3725dcb2dac35732..df96c99e675c0d812e824706b855d285552c6ed0 100644 (file)
@@ -1873,7 +1873,7 @@ remap_predicate (struct inline_summary *info, struct inline_summary *callee_info
                 /* See if we can remap condition operand to caller's operand.
                    Otherwise give up.  */
                 if (!operand_map
-                    || VEC_length (int, operand_map) <= c->operand_num
+                    || (int)VEC_length (int, operand_map) <= c->operand_num
                     || VEC_index (int, operand_map, c->operand_num) == -1)
                   cond_predicate = true_predicate ();
                 else