diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-09-28 09:00:46 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-09-28 09:32:27 +0200 |
commit | 88795e14ae7143bd8039af68d2d876ae34568799 (patch) | |
tree | f4d3f7ff26499adab0ec12d3f1330f864ac2d704 /gcc/ordered-hash-map.h | |
parent | dabef758bfe23d847cb1e2de2d0c0a67a53dc56a (diff) | |
download | gcc-88795e14ae7143bd8039af68d2d876ae34568799.zip gcc-88795e14ae7143bd8039af68d2d876ae34568799.tar.gz gcc-88795e14ae7143bd8039af68d2d876ae34568799.tar.bz2 |
Fix bogus alignment warning on address clause
The compiler gives a bogus alignment warning on an address clause and
a discriminated record type with variable size.
gcc/ada/ChangeLog:
* gcc-interface/decl.c (maybe_saturate_size): Add ALIGN parameter
and round down the result to ALIGN.
(gnat_to_gnu_entity): Adjust calls to maybe_saturate_size.
gcc/testsuite/ChangeLog:
* gnat.dg/addr16.adb: New test.
* gnat.dg/addr16_pkg.ads: New helper.
Diffstat (limited to 'gcc/ordered-hash-map.h')
0 files changed, 0 insertions, 0 deletions