re PR middle-end/27336 (delete null checks in callers to nonnull functions)
authorRichard Biener <rguenther@suse.de>
Tue, 23 Aug 2016 07:23:19 +0000 (07:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 23 Aug 2016 07:23:19 +0000 (07:23 +0000)
commit1fd9f058f37ba4c17cd34e961fe4879e7dd7e3bc
tree78232f581677e4708f81fc0025d91b370e95ffea
parente83421c08ff730d683c4921c07cf7f327a6bab89
re PR middle-end/27336 (delete null checks in callers to nonnull functions)

2016-08-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/27336
* tree-vrp.c (infer_value_range): Handle stmts that can throw
by looking for a non-EH edge.
(process_assert_insertions_for): Likewise.

* c-c++-common/pr27336.c: New testcase.

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