This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC] Emit thunks from the frontends
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Dec 2008 10:57:51 -0800
- Subject: Re: [PATCH][RFC] Emit thunks from the frontends
- References: <alpine.LNX.2.00.0812021418170.5167@zhemvz.fhfr.qr>
Richard Guenther wrote:
> Bootstrapped / tested on x86_64-unknown-linux-gnu with the
> gimplification unit-at-a-time patch applied.
>
> Comments?
>
> Thanks,
> Richard.
>
> 2008-12-02 Richard Guenther <rguenther@suse.de>
>
> * cgraph.c (cgraph_add_new_function): Remove gimplification.
> * cgraphunit.c (cgraph_finalize_function): Emit associated
> thunks from here.
> (cgraph_expand_function): Not from here.
> * varasm.c (finish_aliases_1): Ignore errorneous aliases used
> by thunks.
>
> cp/
> * method.c (use_thunk): Use cgraph_finalize_function to hand
> off thunks to the cgraph.
> * semantics.c (emit_associated_thunks): Do not emit thunks
> for really extern functions.
This is OK; thanks.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713