This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Don't write DECL_CONTEXT for function_decl. Add asserts to the writer
- 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: Tue, 20 Jan 2009 12:47:03 -0500
- Subject: Re: [lto][patch] Don't write DECL_CONTEXT for function_decl. Add asserts to the writer
- References: <38a0d8450901200943w26b2dce8q596cc482dcd977b4@mail.gmail.com>
On Tue, Jan 20, 2009 at 12:43, Rafael Espindola <espindola@google.com> wrote:
> 2009-01-20 Rafael Avila de Espindola <espindola@google.com>
>
> * lto-function-out.c (output_inits_in_decl_state,
> output_remaining_constructors_and_inits,
> output_all_constructors_and_inits): Assert that if there is a context
> it is a FUNCTION_DECL.
> (output_function_decl): Don't write decl->decl_minimal.context.
> * lto-function-in.c (input_function_decl): Don't read
> decl->decl_minimal.context.
Patch is missing. Based on the CL entry, it seems OK though.
Diego.