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

Richard Henderson rth@redhat.com
Tue Aug 6 16:54:00 GMT 2002


On Tue, Aug 06, 2002 at 04:39:03PM -0700, Stuart Hastings wrote:
> While this is certainly ugly, the "alternate entry point" scheme must do 
> something logically similar.

Not at all.  It sets a variable within the function, and the
register allocator can decide to put it anywhere handy.  It
is not restricted to the argument registers.

> It's theoretically possible to re-order the arguments to avoid the 
> argument-rippling effect on PPC, but this perturbs the calling 
> signature and precludes compatibility with the previous cloning scheme. 

Eh?  What compatibility?  As Jason said, this new unified function
had better well be strictly local to the object file.  It is an
implementation detail of the compiler that had better not affect
the ABI in any way.


r~



More information about the Gcc-patches mailing list