diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-16 12:32:01 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-16 12:32:01 +0000 |
commit | c2ffc126d31447d231dce2872700bbb415ec3af9 (patch) | |
tree | 58f980d63d671515b7f80da62568737229e3d50e /gcc/fold-const.c | |
parent | f67192ed80f8f3040c6b0ff957f17d5024f837c5 (diff) | |
download | gcc-c2ffc126d31447d231dce2872700bbb415ec3af9.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 0ce122a1554..605caa812e0 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))) { |