diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-08-05 13:06:17 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-08-23 10:51:05 +0200 |
commit | 19c22fbea31ae421d5b09a9d0b4f91438310ac45 (patch) | |
tree | 2c9a24dfd6bc26e038e951c937958e3db1384a14 /gcc/coverage.cc | |
parent | 87bdd17829e93bf98d8984d6a16ed25081af6c0d (diff) | |
download | gcc-19c22fbea31ae421d5b09a9d0b4f91438310ac45.zip gcc-19c22fbea31ae421d5b09a9d0b4f91438310ac45.tar.gz gcc-19c22fbea31ae421d5b09a9d0b4f91438310ac45.tar.bz2 |
ada: Fix crash on aliased variable with packed array type and -g switch
This comes from a loophole in gnat_get_array_descr_info for record types
containing a template, which represent an aliased array, when this array
type is bit-packed and implemented as a modular integer.
gcc/ada/
* gcc-interface/misc.cc (gnat_get_array_descr_info): Test the
BIT_PACKED_ARRAY_TYPE_P flag only once on the final debug type. In
the case of records containing a template, replay the entire
processing for the array type contained therein.
Diffstat (limited to 'gcc/coverage.cc')
0 files changed, 0 insertions, 0 deletions