re PR tree-optimization/77862 (ice in add_equivalence)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Thu, 6 Oct 2016 19:58:46 +0000 (19:58 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Thu, 6 Oct 2016 19:58:46 +0000 (19:58 +0000)
commit480570898d36d1d8e29d2adb35bc7eb46b876092
treef8ea7c8686765a34e04bf39db0babc1906c6fd7b
parent65b25c9b437d4e8135f9b8fc66827c87a93cf71b
re PR tree-optimization/77862 (ice in add_equivalence)

Fix PR77862
gcc/testsuite/ChangeLog:

2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR tree-optimization/77862
* gcc.dg/pr77862.c: New test.

gcc/ChangeLog:

2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR tree-optimization/77862
* tree-vrp.c (add_equivalence): Use get_value_range so that
num_vr_values is checked before accessing vr_values.

From-SVN: r240842
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr77862.c [new file with mode: 0644]
gcc/tree-vrp.c