]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2007 23:17:02 +0000 (23:17 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2007 23:17:02 +0000 (23:17 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123170 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-vrp.c

index 1c034ea519259ddabce24340b2860cfd7b08cfe2..2faf42cb20cc22bdac8b4684ebeff82305fdf1b3 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-23  Ian Lance Taylor  <iant@google.com>
+
+       * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
+
 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
 
        * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
index 2fad7790e6f7b9c5a9a77fd969fc0ffec1b1ea4f..262eeb2e37ee67ba5895a5aad1d93cba81d5270d 100644 (file)
@@ -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;