This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix crash on function returning variable-sized array


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]