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 wrong gimple code with ptr to forward vla


On Thu, 5 Oct 2006, Olivier Hainque wrote:

>         * 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 C front end parts of this are OK with me.

-- 
Joseph S. Myers
joseph@codesourcery.com


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