OSDN Git Service

* gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 09:12:09 +0000 (09:12 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Oct 2006 09:12:09 +0000 (09:12 +0000)
commit6e8435a1039a5266c33343f12606821de0c68c54
tree27fdba5cec2529f809c49eb8024849092cb5d4d5
parent8057d30509c8d5be12b13df300ff9b29b9134ade
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117493 138bc75d-0d04-0410-961f-82ee72b054a4
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]