This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/69077] [6 Regression] omnetpp ICEs with -flto -g


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;
     }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]