diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2025-06-12 22:31:06 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-07-03 10:16:30 +0200 |
commit | 8fe64e4d9cd22f7638fc590353c34c79b07f428f (patch) | |
tree | e9b54f60a028104cf43d5946e4c8421445a4caa6 /libcpp/include | |
parent | 802efae1403365775591cc4ea6cf93f0b02d8459 (diff) | |
download | gcc-8fe64e4d9cd22f7638fc590353c34c79b07f428f.zip gcc-8fe64e4d9cd22f7638fc590353c34c79b07f428f.tar.gz gcc-8fe64e4d9cd22f7638fc590353c34c79b07f428f.tar.bz2 |
ada: Enforce alignment constraint for large Object_Size clauses
The constraint is that the Object_Size must be a multiple of the alignment
in bits. But it's enforced only when the value of the clause is lower than
the Value_Size rounded up to the alignment in bits, not for larger values.
gcc/ada/ChangeLog:
* gcc-interface/decl.cc (gnat_to_gnu_entity): Use default messages
for errors reported for Object_Size clauses.
(validate_size): Give an error for stand-alone objects of composite
types if the specified size is not a multiple of the alignment.
Diffstat (limited to 'libcpp/include')
0 files changed, 0 insertions, 0 deletions