This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/52139] [4.5/4.6/4.7 Regression] ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 07 Feb 2012 13:22:45 +0000
- Subject: [Bug rtl-optimization/52139] [4.5/4.6/4.7 Regression] ICE: in remove_insn, at emit-rtl.c:3960 with -O -fPIC -fno-tree-dominator-opts -fno-tree-fre
- Auto-submitted: auto-generated
- References: <bug-52139-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52139
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #26603|0 |1
is obsolete| |
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-07 13:22:45 UTC ---
Created attachment 26604
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26604
gcc47-pr52139.patch
That patch didn't get too far with rtl checking, we are sometimes remove_insn a
barrier after a barrier.
So, here is the variant with the second remove_insn change removed and instead
with BB_END (a) = first; in cfg_layout_merge_blocks. Could add there
gcc_checking_assert (BB_END (a) == first || BARRIER_P (BB_END (a)));
before that line if requested.