aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-03-23 23:17:02 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-03-23 23:17:02 +0000
commitc8539275c310c50bb5ae9db9118cc1b47deb999f (patch)
treed4aa731feef060a98b9a122bd3ff1b662348f322
parentf54171a08c4d4bee21748d5361f57e7a398e846c (diff)
downloadgcc-c8539275c310c50bb5ae9db9118cc1b47deb999f.zip
gcc-c8539275c310c50bb5ae9db9118cc1b47deb999f.tar.gz
gcc-c8539275c310c50bb5ae9db9118cc1b47deb999f.tar.bz2
* tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
From-SVN: r123170
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-vrp.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c034ea..2faf42c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 2fad779..262eeb2 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;