This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C++ space optimization: de-cloning con/de/structors
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Matt Austern <austern at apple dot com>, Stuart Hastings <stuart at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 08 Aug 2002 15:58:04 +0100
- Subject: Re: [PATCH] C++ space optimization: de-cloning con/de/structors
- Organization: Codesourcery LLC
- References: <FDEF889B-AA56-11D6-9F25-00039390D9E0@apple.com> <wvl7kj1qy2i.fsf@prospero.cambridge.redhat.com>
Jason Merrill wrote:
> A better solution, it seems to me, is to factor the *tors properly. The
> base ctor is a subroutine of the complete ctor, which is a subroutine of
> the (optional) allocating ctor. The base dtor is a subroutine of the
> complete dtor, which is a subroutine of the deleting dtor. Then it becomes
> a question of inlining, rather than cloning.
>
> What do y'all think of moving in that direction instead?
This is the better solution.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org