https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69077
--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I suppose the problem here is that lto-symtab is not merging symtab nodes but only the FUNCTION_DECLs so the flag is not merged. Something like this may help. Index: lto-symtab.c =================================================================== --- lto-symtab.c (revision 232227) +++ lto-symtab.c (working copy) @@ -997,6 +1005,8 @@ lto_symtab_prevailing_virtual_decl (tree n = n->next_sharing_asm_name; if (n) { + DECL_POSSIBLY_INLINED (n->decl) |= DECL_POSSIBLY_INLINED (decl); + DECL_POSSIBLY_INLINED (decl) |= DECL_POSSIBLY_INLINED (n->decl); lto_symtab_prevail_decl (n->decl, decl); decl = n->decl; }