This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix crash on function returning variable-sized array
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jan 2012 10:46:34 +1100
- Subject: Re: [patch] Fix crash on function returning variable-sized array
- References: <201201102028.00110.ebotcazou@adacore.com>
On 01/11/2012 06:28 AM, Eric Botcazou wrote:
> 2012-01-10 Eric Botcazou <ebotcazou@adacore.com>
>
> * gimple.h (gimplify_body): Remove first argument.
> * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
> pointer set here, instead just pass DATA to walk_tree.
> (unshare_body): Remove BODY_P argument and adjust. Create the pointer
> set here and invoke copy_if_shared on the size trees of DECL_RESULT.
> (unvisit_body): Likewise, but with unmark_visited.
> (gimplify_body): Remove BODY_P argument and adjust.
> (gimplify_function_tree): Adjust call to gimplify_body.
> * omp-low.c (finalize_task_copyfn): Likewise.
Ok.
Nice cleanup.
r~