]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/52139 (ICE: in remove_insn, at emit-rtl.c:3960 with...
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Feb 2012 21:39:20 +0000 (22:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Feb 2012 21:39:20 +0000 (22:39 +0100)
commitc8b7e7bb8d2778c2bcfafd714e1604fa1aee9b99
tree0e4a31fb625ca84dcb63cd6803fc10fee89d2642
parentbbd746836e838518b421bf0ad55a28275e753598
backport: re PR rtl-optimization/52139 (ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre)

Backported from mainline
2012-02-08  Jakub Jelinek  <jakub@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.

From-SVN: r184074
gcc/ChangeLog
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr52139.c [new file with mode: 0644]