This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Workaround for virtual function/dllimport bug, also patch guidance request


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]