diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-07-01 18:06:46 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-07-01 18:13:12 +0200 |
commit | a3d8860d6386cd12942bc0b1995765ea516297bd (patch) | |
tree | 94904be460b914f7de438e1c9884453e47f6ab5e /gcc/input.c | |
parent | 506c68e25fb6aea135468972dbc9d8abf816a443 (diff) | |
download | gcc-a3d8860d6386cd12942bc0b1995765ea516297bd.zip gcc-a3d8860d6386cd12942bc0b1995765ea516297bd.tar.gz gcc-a3d8860d6386cd12942bc0b1995765ea516297bd.tar.bz2 |
Improve packed record layout support with -fdump-ada-spec
We cannot fully support packed record layout in -fdump-ada-spec, as packing
in C and Ada does not behave the same, so we issue a warning. But simple
cases are OK and can actually be handled without much work.
gcc/c-family/
* c-ada-spec.c (packed_layout): New global variable.
(dump_ada_declaration): Set it upon seeing a packed record type.
Do not put the "aliased" keyword if it is set.
(dump_ada_structure): Add Pack aspect if it is set and clear it.
gcc/testsuite/
* c-c++-common/dump-ada-spec-14.c: Adjust dg-warning directive.
Diffstat (limited to 'gcc/input.c')
0 files changed, 0 insertions, 0 deletions