This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR lto/44230
> Can you instead of checking DECL_FUNCTION_PERSONALITY
> in lto_fixup_function do it in lto_materialize_function after
>
> /* Load the function body only if not operating in WPA mode. In
> WPA mode, the body of the function is not needed. */
> if (!flag_wpa)
> {
> allocate_struct_function (decl, false);
> announce_function (node->decl);
> lto_input_function_body (file_data, decl, data);
>
> (thus only during LTO/LTRANS phase, not in WPA phase)?
Yes, this works as well, thanks.
--
Eric Botcazou