This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Language-independent functions-as-trees representation
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, Per Bothner <per at bothner dot com>,Diego Novillo <dnovillo at redhat dot com>,Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Sat, 20 Jul 2002 21:35:40 +0100
- Subject: Re: Language-independent functions-as-trees representation
- References: <wvllm86k1m1.fsf@prospero.cambridge.redhat.com>
Jason Merrill wrote:-
> In a previous thread, Diego has suggested that inlining would be done on
> language-dependent trees. I think this is a mistake; IMO it should be done
> at the SIMPLE level. Requiring the inliner to know about frontend trees is
> wrong.
With appropriate use of a language hook or two, it should be possible
to do it on the front-end representation. I suspect this is ideal in
general, because different languages have different constraints on what
is and is not possible in various situations, that tends to get lost
after lowering.
Neil.