OSDN Git Service

PR tree-optimization/44182
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2010 15:38:35 +0000 (15:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 May 2010 15:38:35 +0000 (15:38 +0000)
commit39a98435d5b965a89ee773e57a73fe2b22cc4584
treedf14b009ae81deca2b86203a098a50621e0bf602
parent6adbb8370fe9e03dd6bdb84bb6c25c529c527d70
PR tree-optimization/44182
* tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
newly needs to end a bb is followed by debug stmts, instead return
true from the function at the end.
(maybe_move_debug_stmts_to_successors): New function.
(copy_cfg_body): Call it if copy_edges_for_bb returned true.

* g++.dg/debug/pr44182.C: New test.

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