From 9d3a34d458a1873ea4d3302ed517631d149de6ef Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 16 Nov 1993 13:40:41 +0000 Subject: [PATCH] (push_init_level): When aligning next struct field, make sure there's another field left. From-SVN: r6110 --- gcc/c-typeck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.30.2