This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] C++ space optimization: de-cloning con/de/structors


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


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