aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-08-30 21:21:40 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-08-30 21:21:40 +0000
commitbf7a697f0ad4399b6ef6abc542520c9be858356e (patch)
treecdce6115b5f67f736d2426ccd24c4fa2c238f753 /gcc/c-tree.h
parent496b84c8edb6289c1e9e24c8c69ae2f63d1bcd13 (diff)
downloadgcc-bf7a697f0ad4399b6ef6abc542520c9be858356e.zip
gcc-bf7a697f0ad4399b6ef6abc542520c9be858356e.tar.gz
gcc-bf7a697f0ad4399b6ef6abc542520c9be858356e.tar.bz2
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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 7615486..f692f73 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -94,6 +94,10 @@ struct lang_decl GTY(())
nonzero if the definition of the type has already started. */
#define C_TYPE_BEING_DEFINED(TYPE) TYPE_LANG_FLAG_0 (TYPE)
+/* In an incomplete RECORD_TYPE or UNION_TYPE, a list of variable
+ declarations whose type would be completed by completing that type. */
+#define C_TYPE_INCOMPLETE_VARS(TYPE) TYPE_VFIELD (TYPE)
+
/* In an IDENTIFIER_NODE, nonzero if this identifier is actually a
keyword. C_RID_CODE (node) is then the RID_* value of the keyword,
and C_RID_YYCODE is the token number wanted by Yacc. */