On Mon, Jul 4, 2022 at 10:03 AM Eric Botcazou via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi,
>
> vector types are represented as array types with DW_AT_GNU_vector attribute in
> the debug info and a range [0 .. TYPE_VECTOR_SUBPARTS - 1].  That's obviously
> skewed toward the C family of languages, therefore the attached patch changes
> the lower bound to the default for the language of the CU, if any.
>
> Tested on x86-64/Linux, OK for the mainline?

For late generated vector types this might result in inconsistencies with
early (user) generated types when using LTO.  Is there context available
somehow so we can do like the is_<LANG> overloads on a decl and
use a default according to that?

>
> gcc/
>         * dwarf2out.cc (gen_array_type_die): Use the default lower bound of
>         the language for vector types.
>
> --
> Eric Botcazou

Reply via email to