https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87525
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|jakub at redhat dot com | --- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Sure, if it is originally an indirect call, it is a best effort, if we can optimize it into a direct call early enough, we can inline and thus do the inline definition, if not, we do the out of line definition. I'd say regardless of whether in the end it is in the same TU or different TU. Essentially after the IPA passes (or even when IPA inlining is finished) the inline definition should be thrown away (except perhaps for debug info purposes.