[c-family] Improve support of simple bit-fields in -fdump-ada-spec

Eric Botcazou botcazou@adacore.com
Sat Nov 28 15:40:19 GMT 2020

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

Tested on x86_64/Linux, applied on the mainline.

2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>

      * 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.

Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 1756 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201128/fbad5ec5/attachment.bin>

More information about the Gcc-patches mailing list