PR rtl-optimization/52139
commit5a23e90799f1bbfc2f6b8a47153bc405d44a7b72
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2012 12:29:43 +0000 (8 12:29 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Feb 2012 12:29:43 +0000 (8 12:29 +0000)
tree5ca56f43bdc225ff98634e12043472c4de2e1b7e
parent70db3df9541cbf4b93af420b00b22237521f1181
PR rtl-optimization/52139
* cfgrtl.c (cfg_layout_merge_blocks): If BB_END
is a BARRIER after emit_insn_after_noloc, move BB_END
to the last non-BARRIER insn before it.

* gcc.dg/pr52139.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184005 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr52139.c [new file with mode: 0644]