This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Remove nodes for extern inline function before writing to disk
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "Rafael Espindola" <espindola at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 9 Oct 2008 06:29:10 -0700
- Subject: Re: [lto][patch] Remove nodes for extern inline function before writing to disk
- References: <38a0d8450810090623j63452261mf64f64601c112efd@mail.gmail.com>
On Thu, Oct 9, 2008 at 06:23, Rafael Espindola <espindola@google.com> wrote:
> * lto-cgraph.c (output_edge): Assert that the caller is not external.
> * passes.c (init_optimization_passes): Register pass_ipa_free_lang_specifics2.
> * tree-pass.h (pass_ipa_free_lang_specifics2): New.
> * tree.c (free_lang_specifics2): New.
> (pass_ipa_free_lang_specifics2): New.
No need to create another pass for this. Just call
cgraph_remove_unreachable_nodes from pass_ipa_free_lang_specifics. OK
with that change.
Diego.