https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65263
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Hmm, this seems interesting. The revision enabled more merging in ICF. The expansion dies in output MI thunk that is not ICF produced thunk. So only conclussion I can think of is that ICF redirected call in thunk that made the target dependent code go wrong. What is wrong about the insn? Does the declaration of functions differ significantly? Let me see if I can reproduce that in a cross.