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: Jason Merrill <jason at redhat dot com>
- To: Stuart Hastings <stuart at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 07 Aug 2002 00:24:14 +0100
- Subject: Re: [PATCH] C++ space optimization: de-cloning con/de/structors
- References: <2B1CE9BB-A96C-11D6-8F7C-003065ED8B66@apple.com>
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