OSDN Git Service

* c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Dec 2001 14:09:56 +0000 (14:09 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Dec 2001 14:09:56 +0000 (14:09 +0000)
commit9914932f80bbf4d7406f1cd47c910979d4f694c6
treeb441c86d092a48c7430183b19d6c18262c615e50
parentfc264da35eb58be6c57c45f9463d9bf3b85f7b85
* c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
(finish_struct): Break the loop if n_incomplete went to 0.
For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.

* gcc.c-torture/compile/20011130-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47671 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog