------- Comment #6 from dannysmith at users dot sourceforge dot net 2009-05-13 08:12 ------- (In reply to comment #5)
> Also, I don't think this is necessarily an either-or situation; we could add > my patch and have the typeinfo exported from the DLL, and also add yours so > that clients could link a comdat copy (which would override the import stub) > until we have a better solution for importing from the DLL. Yes. I was just thinking out loud. I have no objection to your patch. Perhaps MULTIPLE_SYMBOL_SPACES should be defined in terms of an -mmultiple-symbol-spaces target option , since if we depend on auto-import than we should treat dll imports thae same as static lib imports. > Also, how come emitting the typeinfo .linkonce as we currently do isn't the > same as COMDAT for these purposes? > I'm not sure I understand your question. In earlier versions of G++, both vtables and typeinfo were always emitted with linkonce semantics, because of the MULTIPLE_SYMBOL_SPACES define. Regards Danny -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40068