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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to remove unused langhooks


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

> This patch removes six langhooks.

Yay.

I'd like to point out that insert_block really needs to die.  The only
remaining use is tree-inline.c::remap_block, inside an #if 1 with a
FIXME comment at the top of it.

Also, it might make sense to give write_global_declarations the same
treatment you gave lhd_clear_binding_stack; along with a little work
to make dbxout.c not need it (see the comment near the end of
dbxout_init), this would allow the removal of the getdecls hook.

Going even further off into it-would-be-nice land, cgraph ought to be
expanded to handle everything that wrapup_global_declarations and
check_global_declarations do, and then we wouldn't need the
write_globals hook at all.  (Have I mentioned that calling
cgraph_optimize ought to be the responsibility of language-independent
code?)

zw


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