https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64465
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #34377|0 |1 is obsolete| | --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 34379 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34379&action=edit gcc5-pr64465.patch Updated patch that works on this testcase. From the cgraph.c comments, it looks like e.g. during function versioning we rely on fixup_cfg to fix it up, but during inlining I think we need to do it immediately. TODO_cleanup_cfg is on during inlining.