http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60640
--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> --- Created attachment 32459 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32459&action=edit Possible fix The problem is that IPA-CP skips thunks when it redirects edges to the new clones it produces. I am currently testing this patch which duplicates thunks when redirecting edges. It is quite possible it will have issues. In any event, Honza, do you have any comments?