re PR middle-end/78501 (SEGV in vrp_val_max)
authorJakub Jelinek <jakub@redhat.com>
Fri, 25 Nov 2016 08:03:51 +0000 (09:03 +0100)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Fri, 25 Nov 2016 08:03:51 +0000 (08:03 +0000)
commit2131e489c9f181e3d445e8e5412407ad32a8875c
tree99d2c15c747af7f434b7e22df7ab31cf3efb6631
parent6d52e46695c0ca61a64030413c48076cec7b0026
re PR middle-end/78501 (SEGV in vrp_val_max)

2016-11-25  Jakub Jelinek  <jakub@redhat.com>
    Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR middle-end/78501
* tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
non null and it's precision matches precision of lhs's type.

Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
From-SVN: r242858
gcc/ChangeLog
gcc/tree-vrp.c