Commit 9d3a34d4 by Richard Stallman

(push_init_level): When aligning next struct field,

make sure there's another field left.

From-SVN: r6110
parent 79bdabb4
...@@ -5042,7 +5042,8 @@ push_init_level (implicit) ...@@ -5042,7 +5042,8 @@ push_init_level (implicit)
/* Structure elements may require alignment. Do this now /* Structure elements may require alignment. Do this now
if necessary for the subaggregate. */ 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. */ /* Advance to offset of this element. */
if (! tree_int_cst_equal (constructor_bit_index, if (! tree_int_cst_equal (constructor_bit_index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment