https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83868
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #2) > (In reply to Eric Gallager from comment #1) > > (In reply to H.J. Lu from comment #0) > > > output_indirect_thunk_function and ix86_code_end should be generated > > > the way in which normal thunks are output from middle-end. > > > > Which way is that? > > See: > > https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01357.html Oh right I should have remembered that thread because it was TARGET_MACHO