re PR tree-optimization/47632 (ICE: verify_flow_info failed: BB 4 can not throw but...
authorRichard Guenther <rguenther@suse.de>
Tue, 8 Feb 2011 10:44:06 +0000 (10:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 8 Feb 2011 10:44:06 +0000 (10:44 +0000)
commit034b8ae4f8c89314b13879ef2d403c14daa5c4fd
tree5a479057359965e6469131ee3ff8041f18fa3e2e
parent298362c83f1e4250dc2598fa11e8f6a3bacd6153
re PR tree-optimization/47632 (ICE: verify_flow_info failed: BB 4 can not throw but has an EH edge with -fnon-call-exceptions -ftrapv and operator new[])

2011-02-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/47632
* tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
unused up_to_stmt parameter, return whether cfg-cleanup is
necessary, remove EH info properly.
(forward_propagate_into_gimple_cond): Adjust caller.
(forward_propagate_into_cond): Likewise.
(forward_propagate_comparison): Likewise.
(tree_ssa_forward_propagate_single_use_vars): Make
forward_propagate_comparison case similar to the two others.

* g++.dg/opt/pr47632.C: New testcase.

From-SVN: r169917
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr47632.C [new file with mode: 0644]
gcc/tree-ssa-forwprop.c