http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52139
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 21:39:23 UTC --- Author: jakub Date: Thu Feb 9 21:39:20 2012 New Revision: 184074 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184074 Log: Backported from mainline 2012-02-08 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/pr52139.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/cfgrtl.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog