re PR tree-optimization/79186 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu...
authorRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2017 13:08:44 +0000 (13:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 23 Jan 2017 13:08:44 +0000 (13:08 +0000)
commitcffcafda6a42033a18ed8eab86ef34b867eaae1e
tree34f640287902c6484f834a28a58d1adda8c710d4
parentbda2bc48c2f813d840a5951c5bb5fd67e8a760f9
re PR tree-optimization/79186 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu:  Segmentation fault (in VRP))

2017-01-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79186
* tree-vrp.c (register_new_assert_for): Make sure we've seen
both incoming edges before moving an assert.

* gcc.dg/torture/pr79186.c: New testcase.
* gcc.dg/torture/pr79187.c: Likewise.

From-SVN: r244804
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79186.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr79187.c [new file with mode: 0644]
gcc/tree-vrp.c