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 of PARM_DECL.
- 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: Mon, 26 Jan 2009 20:30:43 -0500
- Subject: Re: [lto][patch] Don't write DECL_CONTEXT of PARM_DECL.
- References: <38a0d8450901261442y7005ca70tbf262d8ac84caf0f@mail.gmail.com>
On Mon, Jan 26, 2009 at 17:42, Rafael Espindola <espindola@google.com> wrote:
> 2009-01-26 Rafael Avila de Espindola <espindola@google.com>
>
> * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
> share the arugment list.
s/arugment/argument/
> * lto-function-in.c (input_function_decl): Pass the context
> while reading the arguments.
> (input_parm_decl): Add the FN argument. Set the contetxt to it.
> (input_tree_operand): Update call to input_parm_decl.
> * lto-function-out.c (output_function_decl): Pass the context
> while writting the arguments.
> (output_parm_decl): Add the FN argument. Check that it is
> equal to the context.
> (output_tree_with_context): Update the call to ouput_parm_decl.
> * tree.c (free_lang_data_in_decl): Force every PARM_DECL to
> point the the correct FUNCTION_DECL.
OK.
Diego.