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


On Tue, 6 Aug 2002 11:41:49 -0700, Stuart Hastings <stuart@apple.com> wrote:

> This patch essentially un-does the cloning operation.

This seems like a reasonable thing to do, though Mark's point about
alternate entry points is a good one.

Also, the unified *structors should have internal linkage to avoid any ABI
impact.  Then this just becomes an implementation detail.

> +       /* If we've already generated a body for this clone, avoid duplicating it.
> + 	 (Is it possible for a clone-list to grow after we first see it?)  */

Not currently.  A hypothetical general cloning optimizer might do such a thing.

I also think you want to set current_function_is_thunk to avoid re-copying
arguments.

Jason


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