re PR tree-optimization/92452 (ICE in vrp_prop::check_array_ref at tree-vrp.c:4153)
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Nov 2019 08:21:40 +0000 (09:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Nov 2019 08:21:40 +0000 (09:21 +0100)
commite4722b81a45e797565b700d1a5af9b66ae56adf0
treeafca8a60120ba3f8af9af6fe3a43ac4edf18c4f5
parentf03099371687f3f087e4949a68daccf76c8d18bc
re PR tree-optimization/92452 (ICE in vrp_prop::check_array_ref at tree-vrp.c:4153)

PR tree-optimization/92452
* tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
into NULL_TREE, set up_bound to NULL_TREE instead of computing
MINUS_EXPR on it.

* c-c++-common/pr92452.c: New test.

From-SVN: r278080
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr92452.c [new file with mode: 0644]
gcc/tree-vrp.c