This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] fix wrong gimple code with ptr to forward vla
- From: Ian Lance Taylor <iant at google dot com>
- To: Olivier Hainque <hainque at adacore dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, Mark Mitchell <mark at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, kenner at adacore dot com
- Date: 05 Oct 2006 08:42:23 -0700
- Subject: Re: [patch] fix wrong gimple code with ptr to forward vla
- References: <44FC6CBC.6050605@codesourcery.com> <20060905084346.GA14412@cardhu.act-europe.fr> <44FDFF52.9080604@codesourcery.com> <20060906171459.GA490@cardhu.act-europe.fr> <20060908132819.GA15231@cardhu.act-europe.fr> <20060925160113.GA18862@cardhu.act-europe.fr> <Pine.LNX.4.64.0609261606080.10691@digraph.polyomino.org.uk> <20060927091603.GA23340@cardhu.act-europe.fr> <Pine.LNX.4.64.0609271056150.31433@digraph.polyomino.org.uk> <20060928065608.GA1590@cardhu.act-europe.fr> <20061005093755.GA9374@cardhu.act-europe.fr>
Olivier Hainque <hainque@adacore.com> writes:
> * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
> Don't recurse on the pointed-to type.
> * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
> DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
> types with components of variable size.
>
> testsuite/
> * gnat.dg/forward_vla.adb: New case.
> * gcc.dg/typename-vla-1.c: New case.
The patch to gimplify.c is OK.
Thanks.
Ian