2013-04-23 Richard Biener <rguenther@suse.de>
commit5f0af0d824f42d28576b18e42e9ecb10953c57e9
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Apr 2013 14:36:02 +0000 (23 14:36 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Apr 2013 14:36:02 +0000 (23 14:36 +0000)
tree875a3489ed6c6effaec734bac5a457d62d6807af
parent562e5728409269692455b4d302c3a71135224f8a
2013-04-23  Richard Biener  <rguenther@suse.de>

PR middle-end/57036
* tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
parameter, only add abnormal goto edges from the copied body
if the call could perform abnormal gotos.
(copy_cfg_body): Adjust.

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

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