From: Richard Stallman Date: Wed, 26 May 1993 04:22:32 +0000 (+0000) Subject: (finish_decl): If type is laid out, but decl is not, call layout_decl. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d575f110ff85d748791a9e9e60f1b02a9b2b4ca3;p=gcc.git (finish_decl): If type is laid out, but decl is not, call layout_decl. From-SVN: r4572 --- 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) ?