re PR tree-optimization/80788 (ICE in set_value_range, at tree-vrp.c:252)
authorJakub Jelinek <jakub@redhat.com>
Tue, 28 Nov 2017 08:40:36 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Nov 2017 08:40:36 +0000 (09:40 +0100)
commit11c1e63c90eb3540da0b7524a2d7571916102dfe
treeb115dcd2ca2058c4db31b9552148059a7c3598d3
parent6a7a7f92bdae0e62170d4a556c2b007655960bf3
re PR tree-optimization/80788 (ICE in set_value_range, at tree-vrp.c:252)

PR tree-optimization/80788
* match.pd (X +- C1 CMP C2 -> X CMP C2 -+ C1): If res
has TREE_OVERFLOW set, call drop_tree_overflow.

* gcc.dg/pr80788.c: New test.

From-SVN: r255191
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr80788.c [new file with mode: 0644]