[lto][patch] Don't write DECL_CONTEXT of PARM_DECL.

Diego Novillo dnovillo@google.com
Tue Jan 27 02:15:00 GMT 2009

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.


>        * 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.



More information about the Gcc-patches mailing list