This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Workaround for virtual function/dllimport bug, also patch guidance request
- To: Mumit Khan <khan at nanotech dot wisc dot edu>
- Subject: Re: Workaround for virtual function/dllimport bug, also patch guidance request
- From: Jason Merrill <jason at cygnus dot com>
- Date: 28 Nov 1999 00:17:54 -0800
- Cc: geoff schmidt <gschmidt at MIT dot EDU>, gcc at gcc dot gnu dot org
- References: <199911280701.BAA29974@mercury.xraylith.wisc.edu>
>>>>> Mumit Khan <khan@nanotech.wisc.edu> writes:
> For subclasses of dllimported functions, vtables reference the
> *thunk* functions, not the synthetically created indirect references
> (by backend in i386_pe_mark_dllimport); this is needed to allow
> taking the address of the virtual function. This is one thing that
> needs to be changed in current GCC implementation (eg., by
> nullifying the dllimport attribute of virtual functions in the
> backend, or dealing with specifically in the front-end).
Shouldn't the backend just treat code that wants the address of a function
differently?
Jason