(finish_decl): If type is laid out, but decl is not, call layout_decl.
From-SVN: r4572
This commit is contained in:
parent
61ebecd1f8
commit
d575f110ff
@ -3431,6 +3431,10 @@ finish_decl (decl, init, asmspec_tree)
|
||||
|
||||
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
|
||||
&& (TREE_STATIC (decl)
|
||||
?
|
||||
|
Loading…
Reference in New Issue
Block a user