This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch: mingw/cygwin] Handle export of MI thunks from windows dll's
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: Jason Merrill <jason at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Christopher Faylor <cgf at redhat dot com>
- Date: Sun, 6 Jul 2003 07:02:54 +1000 (EST)
- Subject: Re: [Patch: mingw/cygwin] Handle export of MI thunks from windows dll's
--- Jason Merrill <jason@redhat.com> wrote: > Rather than remove the check for DECL_ARTIFICIAL,
you should be able to add
> a check for DECL_THUNK_P to handle thunks. We still don't want
> import/export to affect synthesized copy ctors et al.
>
> Jason
I was going to, but that would mean including cp/cp-tree.h. I didn't think
inclusion of language-specific files or using a language-specific flag
was a good thing to do. (No other targets seem to.)
What is problem with _exporting_ synthesized copy ctors from shared library? They get
exposed when put in static library. They can be excluded from dllimport by
checking for DECL_ARTIFICIAL in i386_pe_dllimport_p.
Danny
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.