[lto][patch] Fix a fixme

Diego Novillo dnovillo@google.com
Thu Jan 15 15:47:00 GMT 2009


On Thu, Jan 15, 2009 at 05:35, Rafael Espindola <espindola@google.com> 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  <espindola@google.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.


Diego.



More information about the Gcc-patches mailing list