[Bug rtl-optimization/54455] [4.7/4.8 Regression] ICE: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in compute_bb_for_insn, at cfgrtl.c:418

steven at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 2 11:47:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54455

--- Comment #3 from Steven Bosscher <steven at gcc dot gnu.org> 2012-09-02 11:47:18 UTC ---
The patch is incorrect. There can't be a BARRIER in the middle of a basic
block. This problem typically indicates that either a BARRIER was emitted in
the wrong place, or BB_END wasn't updated properly after a BARRIER was inserted
somewhere. BARRIERs never appear inside a basic block.

What does the insns list look like around the BARRIER? (From GDB do:
"p debug_rtx_list(barrier_insn, -7)" and show the result here.)



More information about the Gcc-bugs mailing list