[lto][patch] Fix a fixme
Thu Jan 15 15:47:00 GMT 2009
On Thu, Jan 15, 2009 at 05:35, Rafael Espindola <firstname.lastname@example.org> wrote:
> This patch fixes the FIXME of making DECL_CONTEXT (decl) =
> decl_function_context (decl). It needs the patch I posted yesterday.
> Would you like a combined patch?
No, that's fine. It would be nice to have a test case, though. This
is needed for plugin+gold, right?
> 2009-01-15 Rafael Avila de Espindola <email@example.com>
> * tree.c (reset_decl_lang_specific): Set DECL_CONTEXT (decl) to
> decl_function_context (decl) for all non FIELD_DECL DECLs.
> * dwarf2out.c (add_pure_or_virtual_attribute): Check the DECL_CONTEXT is
> not NULL.
Both patches are OK if tests show no regressions.
More information about the Gcc-patches