This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Tree inlining for the C front end (part 1 of 3)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]