Commit d575f110 by Richard Stallman

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

From-SVN: r4572
parent 61ebecd1
......@@ -3432,6 +3432,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)
?
/* A static variable with an incomplete type
......
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