]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on bit-packed array type with Volatile_Full_Access
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 11 Sep 2024 17:53:12 +0000 (19:53 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 25 Oct 2024 11:18:22 +0000 (13:18 +0200)
commitd587da263188eb81741e432de70bccf8c53c3d97
tree5c0b1636d7e65e3b056d41e9ce3aacb3c942f1d5
parentddba8434cbf0ddf07a48a8b68942b4c78b5567c7
ada: Fix internal error on bit-packed array type with Volatile_Full_Access

The problem occurs when the component type is a record type with default
values for the initialization procedure of the (base) array type, because
the compiler is trying to generate a full access for a parameter of the
base array type, which does not make sense.

gcc/ada/ChangeLog:

PR ada/116551
* gcc-interface/trans.cc (node_is_atomic) <N_Identifier>: Return
false if the type of the entity is an unconstrained array type.
(node_is_volatile_full_access) <N_Identifier>: Likewise.
gcc/ada/gcc-interface/trans.cc