This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tree inlining for the C front end (part 1 of 3)
- To: Alexandre Oliva <aoliva at redhat dot com>, Richard Henderson <rth at redhat dot com>
- Subject: Re: Tree inlining for the C front end (part 1 of 3)
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 04 Oct 2001 23:54:48 -0700
- cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
> I ended up keeping the macros in tree-inline.h because I found
> something like:
>
> (lang_hooks.tree_inlining.a_relatively_long_name
> ? (*lang_hooks.tree_inlining.a_relatively_long_name)(args)
> : 0)
I think it would be better to do like target-def.h and require
that all member functions (oops, sorry, pointers to functions that
are stored in this structure) be non-NULL -- you can create default
do-nothing functions somewhere (langhooks.c?).
But, this is still a big improvement. Approved, thanks.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com