http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59469
--- Comment #46 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Created attachment 32067 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32067&action=edit Path I am testing Hi, this is patch I am testing. It synchronizes the logic in lto-cgraph.c and ipa-partition.c It seems I also forgot to commit very old patch for setting used_from_other_partition flag correctly, with current code we probably can trigger undefined symbol with COMDAT and cross-partition devirtualization. I will try to look into that next.