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
On Thu, Oct 9, 2008 at 06:52, Rafael Espindola <espindola@google.com> wrote:
> pass_ipa_free_lang_specifics runs too early. If we remove the bodies
> there, programs that have extern inline functions and assume they are
> inlined will fail. We actually test for that on the testsuite (forgot
> the test number).
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.
Diego.