Commit 130a1080 by Zack Weinberg

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
parent a89ea0df
2003-09-01 Zack Weinberg <zack@codesourcery.com>
* 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 <neroden@gcc.gnu.org> 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
* config.host: New file. * config.host: New file.
...@@ -40,8 +46,8 @@ ...@@ -40,8 +46,8 @@
2003-08-31 Olivier Hainque <hainque@act-europe.fr> 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
* builtins.c (expand_builtin_setjmp): Use emit_jump to jump around * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
the != 0 case, which ensures pending stack adjustments are flushed. the != 0 case, which ensures pending stack adjustments are flushed.
2003-08-30 Zack Weinberg <zack@codesourcery.com> 2003-08-30 Zack Weinberg <zack@codesourcery.com>
......
...@@ -1761,7 +1761,8 @@ pushdecl (tree x) ...@@ -1761,7 +1761,8 @@ pushdecl (tree x)
if ((TREE_CODE (element) == RECORD_TYPE if ((TREE_CODE (element) == RECORD_TYPE
|| TREE_CODE (element) == UNION_TYPE) || TREE_CODE (element) == UNION_TYPE)
&& (TREE_CODE (x) != TYPE_DECL && (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) C_TYPE_INCOMPLETE_VARS (element)
= tree_cons (NULL_TREE, x, C_TYPE_INCOMPLETE_VARS (element)); = tree_cons (NULL_TREE, x, C_TYPE_INCOMPLETE_VARS (element));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment