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: About -fms-abi patch


> 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


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