This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why don't we just FIX the damn vthunk problem?
- To: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Subject: Re: Why don't we just FIX the damn vthunk problem?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Mar 1999 12:03:42 -0800
- Cc: jce2 at po dot cwru dot edu, egcs at cygnus dot com, egcs-bugs at cygnus dot com
- References: <36DA0D0C.275599F1.cygnus.egcs@po.cwru.edu> <u9pv6t91n4.fsf@yorick.cygnus.com> <199903011015.LAA00483@mira.isdn.cs.tu-berlin.de>
>>>>> Martin v Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:
>> The static way, which EDG and IBM use, is to write out separate [cd]tor
>> vtables along with the normal ones and pass them down into base [cd]tors.
>> Obviously, this means you use more space in the executable.
> [...]
>> Any other ideas?
> This is the solution which I'd favour. It would change the calling
> convention for constructors of classes with vbases.
Not necessarily. We could set up the [cd]tor vtables in the code
controlled by the in_chrg parameter, where we actually run the vbase
[cd]tors. Then the vbase ctors themselves would wait to set their own
vtables until the end of the function.
We can make this backward compatible for -fno-new-abi by checking to see if
our vtable has already been set up, and setting it like we do now if not.
Jason