------- Comment #4 from hubicka at ucw dot cz  2009-12-10 16:57 -------
Subject: Re:  link error with -flto  (undefined reference to 'non-virtual thunk
...)

> The C++ FE marks the virtual function as TREE_PUBLIC but neither sets
> TREE_STATIC nor DECL_EXTERNAL.  Thus probably lto_symtab_resolve_can_prevail_p
I think it is bug doing so, we probably should fix this at C++ thunk
side.  I am not expert here, but the old non-RTL path was actually going
through the C++ import/export code that we might want to do too.

Thanks for looking into this!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42320

Reply via email to