[PATCH] Handle variable length TARGET_EXPRs in the gimplifier (PR c/33238, PR c/27301)

Richard Guenther richard.guenther@gmail.com
Thu Sep 20 12:21:00 GMT 2007


On 9/20/07, Jakub Jelinek <jakub@redhat.com> wrote:
> On Wed, Sep 19, 2007 at 07:19:57AM -0400, Jakub Jelinek wrote:
> > The following patch handles also variable length TARGET_EXPRs (created e.g.
> > on the attached testcases) in gimplify_target_expr, instead of ICEing on
> > them.
>
> Here is an updated patch which adds a testcase from PR27301 as well (no
> other changes):

This is ok.

Thanks,
Richard.

> 2007-09-20  Jakub Jelinek  <jakub@redhat.com>
>
>         PR c/33238
>         PR c/27301
>         * gimplify.c (gimplify_vla_decl): New function.
>         (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
>         Call it.
>         (gimplify_target_expr): Handle variable length TARGET_EXPRs.
>
>         * gcc.c-torture/execute/20070919-1.c: New test.
>         * gcc.dg/pr33238.c: New test.
>         * gcc.dg/pr27301.c: New test.



More information about the Gcc-patches mailing list