(finish_decl): If type is laid out, but decl is not, call layout_decl.
authorRichard Stallman <rms@gnu.org>
Wed, 26 May 1993 04:22:32 +0000 (04:22 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 26 May 1993 04:22:32 +0000 (04:22 +0000)
From-SVN: r4572

gcc/c-decl.c

index 09d20ca..f661dc4 100644 (file)
@@ -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