2013-05-06 Richard Biener <rguenther@suse.de>
commite2a6b9da18a9bee0845d3f27674cbe413a479cb0
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2013 11:27:29 +0000 (6 11:27 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2013 11:27:29 +0000 (6 11:27 +0000)
tree08393bb2ffe3daf1347d560e6951600839f91db7
parentdfa9a36a5ba55857f0d71824c85851585655da2c
2013-05-06  Richard Biener  <rguenther@suse.de>

PR middle-end/57147
* tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
the edge is also fallthru, preserve it and just clear the
abnormal flag.
* tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
also complex, preserve that and just clear the fallthru flag.
* tree-inline.c (update_ssa_across_abnormal_edges): Also
update virtual operands.

* gcc.dg/torture/pr57147-1.c: New testcase.
* gcc.dg/torture/pr57147-2.c: Likewise.
* gcc.dg/torture/pr57147-3.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198625 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr57147-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr57147-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr57147-3.c [new file with mode: 0644]
gcc/tree-cfg.c
gcc/tree-cfgcleanup.c
gcc/tree-inline.c