From: Zack Weinberg Date: Mon, 1 Sep 2003 17:32:18 +0000 (+0000) Subject: c-decl.c (pushdecl): Don't put variables on C_TYPE_INCOMPLETE_VARS of a type unless... X-Git-Tag: releases/gcc-3.4.0~3962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=130a1080ce57694859ec344731f5ee6e79b073e1;p=thirdparty%2Fgcc.git c-decl.c (pushdecl): Don't put variables on C_TYPE_INCOMPLETE_VARS of a type unless... * c-decl.c (pushdecl): Don't put variables on C_TYPE_INCOMPLETE_VARS of a type unless that type is itself incomplete. From-SVN: r70976 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a052eec18e9..493e4b425c98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-09-01 Zack Weinberg + + * c-decl.c (pushdecl): Don't put variables on + C_TYPE_INCOMPLETE_VARS of a type unless that type is itself + incomplete. + 2003-09-01 Nathanael Nerode * config.host: New file. @@ -40,8 +46,8 @@ 2003-08-31 Olivier Hainque - * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around - the != 0 case, which ensures pending stack adjustments are flushed. + * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around + the != 0 case, which ensures pending stack adjustments are flushed. 2003-08-30 Zack Weinberg diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 20b9b67a071d..8b0990faa1e7 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1761,7 +1761,8 @@ pushdecl (tree x) if ((TREE_CODE (element) == RECORD_TYPE || TREE_CODE (element) == UNION_TYPE) && (TREE_CODE (x) != TYPE_DECL - || TREE_CODE (TREE_TYPE (x)) == ARRAY_TYPE)) + || TREE_CODE (TREE_TYPE (x)) == ARRAY_TYPE) + && !COMPLETE_TYPE_P (element)) C_TYPE_INCOMPLETE_VARS (element) = tree_cons (NULL_TREE, x, C_TYPE_INCOMPLETE_VARS (element)); }