Patch to remove unused langhooks

Richard Henderson rth@redhat.com
Sun Jul 11 08:44:00 GMT 2004


On Sun, Jul 11, 2004 at 12:36:43AM +0000, Joseph S. Myers wrote:
> (A further five hooks are used but have a trivial default definition
> and no front ends give them a nondefault definition:
> LANG_HOOKS_SAFE_FROM_P, LANG_HOOKS_TREE_INLINING_START_INLINING,
> LANG_HOOKS_TREE_INLINING_END_INLINING, LANG_HOOKS_TYPE_MAX_SIZE,
> LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.  One has a nontrivial default
> definition and no front ends give another definition:
> LANG_HOOKS_UNSAVE_EXPR_NOW.  Unless there are immediate plans for a
> front end to use them or they specifically exist for the sake of an
> out-of-tree front end - in which case the comments on them should say
> so - I'm inclined to think that they should also cease to be
> langhooks.)

The MAX_SIZE one Kenner added recently.  Presumably he's intending
to so something with the ada front end.

SAFE_FROM_P and UNSAVE_EXPR_NOW are part of rtl machinery that 
should simply be removed.

Patch is ok.


r~



More information about the Java-patches mailing list