gimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.
authorOlivier Hainque <hainque@adacore.com>
Fri, 6 Oct 2006 09:12:09 +0000 (09:12 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Fri, 6 Oct 2006 09:12:09 +0000 (09:12 +0000)
commit706c4bb76caf0bf9cef5f12d94c9b52d9594e433
tree27fdba5cec2529f809c49eb8024849092cb5d4d5
parent4d51dc9ec6c2b5e94031936baca7763d9c3b4f1c
gimplify.c (gimplify_type_sizes): Don't recurse on the pointed-to type.

* 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/gcc.dg/typename-vla-1.c: New case.
* testsuite/gnat.dg/forward_vla.adb: New case.

From-SVN: r117493
gcc/ChangeLog
gcc/c-decl.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/typename-vla-1.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/forward_vla.adb [new file with mode: 0644]