This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Fix a fixme
- From: Diego Novillo <dnovillo at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 15 Jan 2009 10:31:31 -0500
- Subject: Re: [lto][patch] Fix a fixme
- References: <38a0d8450901150235p121855c6h5cb161947a66c445@mail.gmail.com>
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.