This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Fix handling of DECL_CONTEXT of RESULT_DECLs. Don't write them to disk
- 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, 22 Jan 2009 07:35:27 -0500
- Subject: Re: [lto][patch] Fix handling of DECL_CONTEXT of RESULT_DECLs. Don't write them to disk
- References: <38a0d8450901220428q28edff35pe579614fb27d5257@mail.gmail.com>
On Thu, Jan 22, 2009 at 07:28, Rafael Espindola <espindola@google.com> wrote:
> * lto-function-in.c (input_tree_with_context): New.
> (input_tree_operand): Change signature. Pass fn to input_result_decl.
> (input_function_decl): Use input_tree_with_context for the result.
> (input_result_decl): Change signature. Don't read the context.
> (input_tree): Implement with input_tree_with_context.
> * lto-function-out.c (output_tree_with_context): New.
> (output_function_decl): Use output_tree_with_context for the context.
> (output_result_decl): Change signature. Assert the the context is
> correct. Don't write it.
> (output_tree): Implement with output_tree_with_context.
> * omp-low.c (create_omp_child_function): Set DECL_CONTEXT of the
> RESULT_DECL.
Patch is missing.
Diego.