From daae4650a99b2950d3ce823b1dd60840130c1fe1 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Mon, 8 Aug 2011 11:59:02 +0200 Subject: [PATCH] re PR tree-optimization/50005 (ipa-inline-analysis.c:1876:41: error: comparison between signed an d unsigned integer expressions) 2011-08-08 Mikael Pettersson PR tree-optimization/50005 * ipa-inline-analysis (remap_predicate): Add cast to silence signed/unsigned comparison warning. From-SVN: r177557 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline-analysis.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cda57dd131a..227202ce364 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-08 Mikael Pettersson + + PR tree-optimization/50005 + * ipa-inline-analysis (remap_predicate): Add cast to + silence signed/unsigned comparison warning. + 2011-08-08 Richard Sandiford * modulo-sched.c (get_sched_window): Use a table for the debug output. diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 1055d523fd2..df96c99e675 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -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 -- 2.30.2