Fix inaccurate bounds in debug info for vector array types
commitb9c35857d00c66158fcdf7de8adae4f06023052e
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 09:10:17 +0000 (14 11:10 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 14 Sep 2021 09:10:17 +0000 (14 11:10 +0200)
treee038c8aa9ff0d2925083d1a92437cb072b49a6bd
parent26864014bba4ccd33cddbf7d9cd81fe9685e7f7c
Fix inaccurate bounds in debug info for vector array types

They should not be 0-based, unless the array type itself is.

gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity): For vector types, make
the representative array the debug type.
gcc/ada/gcc-interface/decl.c