Re: [PATCH] Use default lower bound for vector types in debug info

2022-07-04 Thread Richard Biener via Gcc-patches
On Mon, Jul 4, 2022 at 10:42 AM Eric Botcazou wrote: > > > For late generated vector types this might result in inconsistencies with > > early (user) generated types when using LTO. > > Is that a problem? That's no different with regular array types. I'm not sure - almost all types the user can

Re: [PATCH] Use default lower bound for vector types in debug info

2022-07-04 Thread Eric Botcazou via Gcc-patches
> For late generated vector types this might result in inconsistencies with > early (user) generated types when using LTO. Is that a problem? That's no different with regular array types. > Is there context available somehow so we can do like the is_ overloads > on a decl and use a default accor

Re: [PATCH] Use default lower bound for vector types in debug info

2022-07-04 Thread Richard Biener via Gcc-patches
On Mon, Jul 4, 2022 at 10:03 AM Eric Botcazou via Gcc-patches 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 a