[patch] fix wrong gimple code with ptr to forward vla
Ian Lance Taylor
iant@google.com
Thu Oct 5 16:38:00 GMT 2006
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
More information about the Gcc-patches
mailing list