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.