[Bug rtl-optimization/83645] ICE: in get_insn_template, at final.c:2100 with -gstatement-frontiers

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 1 18:22:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83645

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that during the final pass the cfg is not available anymore, so
using
  FOR_EACH_BB_FN (bb, cfun)
    {
      FOR_BB_INSNS_SAFE (bb, insn, next)
in delete_vta_debug_insns is incorrect at that point.
Instead at that point we need to walk insns from get_insns () up to the very
last insn in the chain.


More information about the Gcc-bugs mailing list