OSDN Git Service

2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Aug 2011 09:59:02 +0000 (09:59 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Aug 2011 09:59:02 +0000 (09:59 +0000)
        PR tree-optimization/50005
        * ipa-inline-analysis (remap_predicate): Add cast to
        silence signed/unsigned comparison warning.

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

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

index cda57dd..227202c 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 1055d52..df96c99 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