re PR tree-optimization/44182 (-fcompare-debug failure (length) with -O1)
authorJakub Jelinek <jakub@redhat.com>
Mon, 31 May 2010 15:38:35 +0000 (17:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 May 2010 15:38:35 +0000 (17:38 +0200)
commit90a7788bbc9890f681aa8434a861d88c3a9eb815
treedf14b009ae81deca2b86203a098a50621e0bf602
parent1e2c0906eeaf6050034a17d06c9d40c16a3f29cd
re PR tree-optimization/44182 (-fcompare-debug failure (length) with -O1)

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.

From-SVN: r160074
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/pr44182.C [new file with mode: 0644]
gcc/tree-inline.c