From: ian Date: Fri, 23 Mar 2007 23:17:02 +0000 (+0000) Subject: * tree-vrp.c (operand_less_p): Ignore fold overflow warnings. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f82ccac1ec646f639a22f876523eaa2200d41b0a;p=thirdparty%2Fgcc.git * tree-vrp.c (operand_less_p): Ignore fold overflow warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123170 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c034ea51925..2faf42cb20cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-03-23 Ian Lance Taylor + + * tree-vrp.c (operand_less_p): Ignore fold overflow warnings. + 2007-03-23 Steven Bosscher * tracer.c (tracer): Don't take FLAGS argument. Assert we are diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 2fad7790e6f7..262eeb2e37ee 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -647,7 +647,12 @@ operand_less_p (tree val, tree val2) { tree tcmp; + fold_defer_overflow_warnings (); + tcmp = fold_binary_to_constant (LT_EXPR, boolean_type_node, val, val2); + + fold_undefer_and_ignore_overflow_warnings (); + if (!tcmp) return -2;