]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix missing error on too large Component_Size not multiple of storage unit
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 1 May 2025 23:30:56 +0000 (01:30 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Jul 2025 09:49:04 +0000 (11:49 +0200)
commit73b173d915f9bbcfd751cefd2bdb1ab690f0b2fc
treeab14e0c3ce938ec8310fc9d7f3ee51199b3b4f28
parent78ce4720d13b3e82a4c718880a9ca9f0e955cf7e
ada: Fix missing error on too large Component_Size not multiple of storage unit

This is a small regression introduced a few years ago.

gcc/ada/ChangeLog:

* gcc-interface/decl.cc (gnat_to_gnu_component_type): Validate the
Component_Size like the size of a type only if the component type
is actually packed.
gcc/ada/gcc-interface/decl.cc