This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -funit-at-a-time x nested fns x inlining of enclosing fn
- From: Jan Hubicka <jh at suse dot cz>
- To: Richard Henderson <rth at redhat dot com>,Alexandre Oliva <aoliva at redhat dot com>, gcc-patches at gcc dot gnu dot org,Jan Hubicka <jh at suse dot cz>
- Date: Sat, 10 Jul 2004 12:23:33 +0200
- Subject: Re: -funit-at-a-time x nested fns x inlining of enclosing fn
- References: <orn029qt72.fsf@livre.redhat.lsd.ic.unicamp.br> <20040709211315.GD11072@redhat.com>
> On Fri, Jul 09, 2004 at 09:08:17AM -0300, Alexandre Oliva wrote:
> > I'm not entirely happy with any of them, but I'd appreciate thoughts
> > on how to best deal with this problem.
>
> After function un-nesting, I see no reason to keep the parent/child
> relationship in cgraph. No idea what happens with dwarf2out though...
I have to take a look into it.
One place where parent-child relationship is needed are the nested
functions of extern inline functions.
Tought these are static we must not emit these unless we inlined the
origin unlike normal static functions in non-unit-at-a-time mode.
This can be definitly cared by flag instead of preserving the whole
relationship chain.
Honza
>
>
> r~