This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Last of the "don't write DECL_CONTEXT" series.
- 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: Wed, 28 Jan 2009 08:32:06 -0500
- Subject: Re: [lto][patch] Last of the "don't write DECL_CONTEXT" series.
- References: <38a0d8450901280521r6e4c18cbvf69e93597bf0c1ce@mail.gmail.com>
On Wed, Jan 28, 2009 at 08:21, Rafael Espindola <espindola@google.com> wrote:
> With this patch we only write the context of FIELD_DECL and they are
> not a problem for the moment.
Excellent.
> 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
>
> * lto-function-in.c (input_local_var_decl): Set DECL_CONTEXT to
> fn->decl.
> * lto-function-out.c (output_local_var_decl): Add the FN argument.
> Assert DECL_CONTEXT is fn.
> (output_local_decl): Add the FN argument. Pass it to
> output_local_var_decl.
> (output_local_vars): Pass fn->decl to output_local_decl.
OK.
Diego.