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]
Other format: [Raw text]

Re: [lto][patch] Remove nodes for extern inline function before writing to disk


> Oh, right.  In that case, just add TODO_remove_functions to
> todo_flags_start in pass_ipa_lto_gimple_out.  That should remove the
> unreachable nodes just before we emit gimple.

That would call

cgraph_remove_unreachable_nodes (true, dump_file);

What we need is

cgraph_remove_unreachable_nodes (false, dump_file);

> Diego.
>

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


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