re PR tree-optimization/47053 (ICE: verify_flow_info failed: BB 2 can not throw but...
authorJeff Law <law@redhat.com>
Sat, 22 Jan 2011 04:09:44 +0000 (21:09 -0700)
committerJeff Law <law@gcc.gnu.org>
Sat, 22 Jan 2011 04:09:44 +0000 (21:09 -0700)
commitcaaf13d38729701accab60cfee5d743a5b9afad1
treee26bd30b7702ab14267fea3bce44ce25dab21466
parent47ba04ab544664fefe22f0e49e2307647bc33af5
re PR tree-optimization/47053 (ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions)

PR tree-optimization/47053
* tree-ssa-dse.c (need_eh_cleanup): New bitmap.
(dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
statements are deleted.
(tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
is nonempty, then purge dead edges and cleanup the CFG.

PR tree-optimization/47053
* g++.dg/pr47053.C: New test.

From-SVN: r169123
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr47053.C [new file with mode: 0644]
gcc/tree-ssa-dse.c