+2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
+
+ * decl.c (components_to_record): Improve comment.
+
2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
* decl.c (components_to_record): Do not reuse the empty union type
Set_Present_Expr (variant, annotate_value (gnu_qual));
/* If this is an Unchecked_Union and we have exactly one field,
- use that field here. */
- if (unchecked_union && TYPE_FIELDS (gnu_variant_type)
+ use this field directly to match the layout of C unions. */
+ if (unchecked_union
+ && TYPE_FIELDS (gnu_variant_type)
&& !TREE_CHAIN (TYPE_FIELDS (gnu_variant_type)))
gnu_field = TYPE_FIELDS (gnu_variant_type);
else