(push_init_level, really_start_incremental_init):

Skip any nameless bitfields at start of record.
(process_init_element): Skip any nameless bitfields after the field
just processed.

From-SVN: r6099
This commit is contained in:
Richard Stallman 1993-11-15 07:20:32 +00:00
parent c110c53d6e
commit fc62385421
1 changed files with 12 additions and 0 deletions

View File

@ -4966,6 +4966,10 @@ really_start_incremental_init (type)
|| TREE_CODE (constructor_type) == UNION_TYPE)
{
constructor_fields = TYPE_FIELDS (constructor_type);
/* Skip any nameless bit fields atthe beginning. */
while (constructor_fields != 0 && DECL_BIT_FIELD (constructor_fields)
&& DECL_NAME (constructor_fields) == 0)
constructor_fields = TREE_CHAIN (constructor_fields);
constructor_unfilled_fields = constructor_fields;
constructor_bit_index = copy_node (integer_zero_node);
}
@ -5119,6 +5123,10 @@ push_init_level (implicit)
|| TREE_CODE (constructor_type) == UNION_TYPE)
{
constructor_fields = TYPE_FIELDS (constructor_type);
/* Skip any nameless bit fields atthe beginning. */
while (constructor_fields != 0 && DECL_BIT_FIELD (constructor_fields)
&& DECL_NAME (constructor_fields) == 0)
constructor_fields = TREE_CHAIN (constructor_fields);
constructor_unfilled_fields = constructor_fields;
constructor_bit_index = copy_node (integer_zero_node);
}
@ -5895,6 +5903,10 @@ process_init_element (value)
}
constructor_fields = TREE_CHAIN (constructor_fields);
/* Skip any nameless bit fields atthe beginning. */
while (constructor_fields != 0 && DECL_BIT_FIELD (constructor_fields)
&& DECL_NAME (constructor_fields) == 0)
constructor_fields = TREE_CHAIN (constructor_fields);
break;
}
if (TREE_CODE (constructor_type) == UNION_TYPE)