re PR tree-optimization/71521 (Regression in GCC-7.0.0's optimizer)
authorRichard Biener <rguenther@suse.de>
Tue, 14 Jun 2016 07:22:04 +0000 (07:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 14 Jun 2016 07:22:04 +0000 (07:22 +0000)
commit90b72e84c427d4e735ae98dc06fe84fc1ec8139b
treead08ab03d531f17d0180aa5adf94b8ff4dcb4681
parent3db5773f7083637c9adb2481d35389495309bc05
re PR tree-optimization/71521 (Regression in GCC-7.0.0's optimizer)

2016-06-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71521
* tree-vrp.c (extract_range_from_binary_expr_1): Guard
division int_const_binop against zero divisor.

* gcc.dg/tree-ssa/vrp101.c: New testcase.

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