https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64982
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Hmm, I see. The problem is that asm_out.can_output_mi_thunk now needs to walk alias to know what ABI the callee function uses and aliases are not analyzed at this point. I solved similar issue in cgraphunit, I think we can safely move that diagnostics there.