Improve support of simple bit-fields in -fdump-ada-spec
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 28 Nov 2020 15:37:12 +0000 (16:37 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Sat, 28 Nov 2020 15:39:20 +0000 (16:39 +0100)
commit8e59ff5541889817a160afda130bcbcdb70c4b90
tree406d9d6a006b432b49dfd48a68f5668f83976001
parentb1adbc27c4a85ded4db81ed65b1cefce4cee8d15
Improve support of simple bit-fields in -fdump-ada-spec

This fixes an issue with nested structures and adds an Alignment clause
to counter the effect of the Pack aspect.

gcc/c-family/ChangeLog:
* c-ada-spec.c (dump_nested_type) <RECORD_TYPE>: Remove obsolete code.
(dump_ada_structure): Also deal with convention, unchecked union and
bit-field for nested types.  In the latter case, print an Alignment
aspect along with the Pack aspect.
gcc/c-family/c-ada-spec.c