Re: How to define Struct / Array type with runtime invariants like SVE or RVV

2021-08-26 Thread Richard Biener via Gcc
On Wed, Aug 25, 2021 at 11:09 AM Jojo R via Gcc wrote: > > > — Jojo > 在 2021年8月25日 +0800 PM3:27,Jonathan Wakely ,写道: > > > > > > On Wed, 25 Aug 2021, 07:45 Jojo R wrote: > > > Hi, > > > > > > I want to use struct or array type as container in my project, > > > > > > but GCC does no

Re: How to define Struct / Array type with runtime invariants like SVE or RVV

2021-08-25 Thread Jojo R via Gcc
— Jojo 在 2021年8月25日 +0800 PM3:27,Jonathan Wakely ,写道: > > > On Wed, 25 Aug 2021, 07:45 Jojo R wrote: > > Hi, > > > >         I want to use struct or array type as container in my project, > > > >         but GCC does not support this usage by now because that > > > >         the size of these typ

Re: How to define Struct / Array type with runtime invariants like SVE or RVV

2021-08-25 Thread Jonathan Wakely via Gcc
On Wed, 25 Aug 2021, 07:45 Jojo R wrote: > Hi, > > I want to use struct or array type as container in my project, > > but GCC does not support this usage by now because that > > the size of these types are decided at compile-time :( > > so is there any good solution

How to define Struct / Array type with runtime invariants like SVE or RVV

2021-08-24 Thread Jojo R via Gcc
Hi, I want to use struct or array type as container in my project, but GCC does not support this usage by now because that the size of these types are decided at compile-time :( so is there any good solution to fix this ? or some new feature patches to a