https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69241
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37565 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37565&action=edit gcc6-pr69241.patch So, it seems we have at least 3 different issues, the attached patch fixes two of them, there is one remaining somewhere in ipa-split.c.