From d575f110ff85d748791a9e9e60f1b02a9b2b4ca3 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 26 May 1993 04:22:32 +0000 Subject: [PATCH] (finish_decl): If type is laid out, but decl is not, call layout_decl. From-SVN: r4572 --- gcc/c-decl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 09d20caf829..f661dc40f85 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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) ? -- 2.30.2