]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix debug info for aliased packed array with unconstrained nominal subtype
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 17 Oct 2023 17:20:26 +0000 (19:20 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 Nov 2023 09:15:05 +0000 (10:15 +0100)
commitb6ba22cab4fdea3468896c37719c0b9e946a646f
treea8af24b7a0ccdf8cbc11f016d9a81cb45c2d08ab
parentc210397b75df066ef96c6834a0d4273658d07ee7
ada: Fix debug info for aliased packed array with unconstrained nominal subtype

The front-end now rewrites it as a renaming when it is initialized with a
function call and the same processing must be applied in the renaming case
as in the regular case for this kind of special objects.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Apply the
specific rewriting done for an aliased object with an unconstrained
array nominal subtype in the renaming case too.
gcc/ada/gcc-interface/decl.cc