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] Fix a fixme


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.


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