PR tree-optimization/51596
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 14:24:29 +0000 (14:24 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Dec 2011 14:24:29 +0000 (14:24 +0000)
commita79e8e8ca5c482d2fea0fd9655219622785b7521
treecc979d911c17471d4103c96caf085aed7e44c878
parent6d741312873e39b416a3b283c0877880725891a7
PR tree-optimization/51596
* tree-cfg.c (replace_uses_by): Call gimple_purge_dead_eh_edges
when needed.

* g++.dg/opt/pr51596.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182481 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr51596.C [new file with mode: 0644]
gcc/tree-cfg.c