pp_string (buffer, " is ");
dump_ada_structure (buffer, field_type, t, true, spc);
-
- pp_string (buffer, "with Convention => C_Pass_By_Copy");
-
- if (TREE_CODE (field_type) == UNION_TYPE)
- {
- pp_comma (buffer);
- newline_and_indent (buffer, spc + 5);
- pp_string (buffer, "Unchecked_Union => True");
- }
-
pp_semicolon (buffer);
newline_and_indent (buffer, spc);
break;
newline_and_indent (buffer, spc);
/* We disregard the methods for anonymous nested types. */
- if (nested)
- return;
-
- if (has_nontrivial_methods (node))
+ if (has_nontrivial_methods (node) && !nested)
{
pp_string (buffer, "with Import => True,");
newline_and_indent (buffer, spc + 5);
if (bitfield_used)
{
+ char buf[32];
pp_comma (buffer);
newline_and_indent (buffer, spc + 5);
pp_string (buffer, "Pack => True");
+ pp_comma (buffer);
+ newline_and_indent (buffer, spc + 5);
+ sprintf (buf, "Alignment => %d", TYPE_ALIGN (node) / BITS_PER_UNIT);
+ pp_string (buffer, buf);
bitfield_used = false;
}
+ if (nested)
+ return;
+
need_semicolon = !dump_ada_methods (buffer, node, spc);
/* Print the static fields of the structure, if any. */