This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: About -fms-abi patch
- To: anmendes at splicenet dot com dot br
- Subject: Re: About -fms-abi patch
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 25 Aug 1998 00:28:27 +0200
- CC: egcs at cygnus dot com
- References: <001001bdced1$14651ee0$4a40e7c8@anmendes>
> I don't know if it would be a lot of advantage to use an attribute
> as "comobject" if I still have to use the option "-fvtable-thunks",
...
I didn't say it was easy :-) I agree that you'll probably need thunks
in the presence of multiple inheritance. You don't need thunks for all
classes, though. Some classes might use thunks, and others might use
offsets, if the default for the target is offsets. You can tell from
the base class how a certain vtable works. If it originates from a COM
class, it uses a word per slot, otherwise, it uses more words per
slot.
Please note that this wouldn't be different from the rtti slots. Some
classes would support rtti, and COM classes wouldn't. I'm not sure how
difficult this is to implement, but I think it can be done. I also
think it would be the better solution in the long run, since -fms-abi
puts quite severe restrictions on the C++ features.
Regards,
Martin