[Bug target/44139] Exporting emutls symbols from a DLL broken on w32 targets

davek at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 18 14:29:00 GMT 2010



------- Comment #12 from davek at gcc dot gnu dot org  2010-05-18 14:29 -------
(In reply to comment #11)

> I have doubts about the approach in winnt.c, but well maybe I am wrong here. I
> investigated for this issue and see the real issue in declaration cloning in
> varasm.c's emutls_decl- function, which simply doesn't copy attributes of the
> delaration, which then leads to issues about name-decoration.
> Also the DECL_DLLIMPORT_P has to be copied here, too (for import).

Well, what I was thinking when I wrote that is that we could recognize the
TARGET_EMUTLS_xxx_PREFIX in winnt.c, look up the original decl, and copy
whatever necessary attributes over at that time.  However it does look like the
TARGET_EMUTLS_VAR_INIT hook might be what we're actually looking for here; I'll
check the code.


-- 


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



More information about the Gcc-bugs mailing list