aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-10-16 14:32:01 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-10-16 14:32:01 +0200
commita39562d94418f27cbf1ad25c24015bd9c2a0de17 (patch)
tree58f980d63d671515b7f80da62568737229e3d50e /gcc/fold-const.c
parent5773a50f410d585fd248ce8d12e5a8ef33c10ed1 (diff)
downloadgcc-a39562d94418f27cbf1ad25c24015bd9c2a0de17.zip
gcc-a39562d94418f27cbf1ad25c24015bd9c2a0de17.tar.gz
gcc-a39562d94418f27cbf1ad25c24015bd9c2a0de17.tar.bz2
re PR tree-optimization/37664 (ice in remove_range_assertions, at tree-vrp.c:5116)
PR tree-optimization/37664 * fold-const.c (fold_binary): When optimizing comparison with highest or lowest type's value, don't consider TREE_OVERFLOW. * gcc.c-torture/compile/pr37664.c: New test. From-SVN: r141171
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 0ce122a..605caa8 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -12447,7 +12447,6 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1)
unsigned int width = TYPE_PRECISION (arg1_type);
if (TREE_CODE (arg1) == INTEGER_CST
- && !TREE_OVERFLOW (arg1)
&& width <= 2 * HOST_BITS_PER_WIDE_INT
&& (INTEGRAL_TYPE_P (arg1_type) || POINTER_TYPE_P (arg1_type)))
{