(finish_decl): If type is laid out, but decl is not, call layout_decl.

From-SVN: r4572
This commit is contained in:
Richard Stallman 1993-05-26 04:22:32 +00:00
parent 61ebecd1f8
commit d575f110ff

View File

@ -3431,6 +3431,10 @@ finish_decl (decl, init, asmspec_tree)
if (TREE_CODE (decl) == VAR_DECL) if (TREE_CODE (decl) == VAR_DECL)
{ {
if (DECL_SIZE (decl) == 0
&& TYPE_SIZE (TREE_TYPE (decl)) != 0)
layout_decl (decl, 0);
if (DECL_SIZE (decl) == 0 if (DECL_SIZE (decl) == 0
&& (TREE_STATIC (decl) && (TREE_STATIC (decl)
? ?