From: Richard Stallman Date: Tue, 16 Nov 1993 13:40:41 +0000 (+0000) Subject: (push_init_level): When aligning next struct field, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d3a34d458a1873ea4d3302ed517631d149de6ef;p=gcc.git (push_init_level): When aligning next struct field, make sure there's another field left. From-SVN: r6110 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1b5fa4f00ad..650d754464d 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5042,7 +5042,8 @@ push_init_level (implicit) /* Structure elements may require alignment. Do this now if necessary for the subaggregate. */ - if (constructor_incremental && TREE_CODE (constructor_type) == RECORD_TYPE) + if (constructor_incremental && TREE_CODE (constructor_type) == RECORD_TYPE + && constructor_fields) { /* Advance to offset of this element. */ if (! tree_int_cst_equal (constructor_bit_index,