aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2025-06-12 22:31:06 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2025-07-03 10:16:30 +0200
commit8fe64e4d9cd22f7638fc590353c34c79b07f428f (patch)
treee9b54f60a028104cf43d5946e4c8421445a4caa6 /libcpp/include
parent802efae1403365775591cc4ea6cf93f0b02d8459 (diff)
downloadgcc-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