diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-26 04:22:32 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-26 04:22:32 +0000 |
commit | d575f110ff85d748791a9e9e60f1b02a9b2b4ca3 (patch) | |
tree | 181a710ab78a0743f67f155dcd1cf0a67a255cfc | |
parent | 61ebecd1f860c68c9c4d5200b4a05d1fddd0e23f (diff) | |
download | gcc-d575f110ff85d748791a9e9e60f1b02a9b2b4ca3.zip gcc-d575f110ff85d748791a9e9e60f1b02a9b2b4ca3.tar.gz gcc-d575f110ff85d748791a9e9e60f1b02a9b2b4ca3.tar.bz2 |
(finish_decl): If type is laid out, but decl is not, call layout_decl.
From-SVN: r4572
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 09d20ca..f661dc4 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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 |