c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
authorZack Weinberg <zack@gcc.gnu.org>
Sat, 30 Aug 2003 21:21:40 +0000 (21:21 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 30 Aug 2003 21:21:40 +0000 (21:21 +0000)
commitbf7a697f0ad4399b6ef6abc542520c9be858356e
treecdce6115b5f67f736d2426ccd24c4fa2c238f753
parent496b84c8edb6289c1e9e24c8c69ae2f63d1bcd13
c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.

* c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
* c-decl.c (struct c_scope): Remove "incomplete" field.
(pushdecl): Attach variables with incomplete types to
the TYPE_MAIN_VARIANT of the incomplete type in question.
(finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
to complete, not at current_scope->incomplete.  All such
variables do need completion.

From-SVN: r70952
gcc/ChangeLog
gcc/c-decl.c
gcc/c-tree.h