Re: [PATCH v9 5/5] Add the 6th argument to .ACCESS_WITH_SIZE

2024-05-29 Thread Richard Biener
On Tue, May 28, 2024 at 11:10 PM Qing Zhao wrote: > > > > > On May 28, 2024, at 03:43, Richard Biener > > wrote: > > > > On Fri, Apr 12, 2024 at 3:55 PM Qing Zhao wrote: > >> > >> to carry the TYPE of the flexible array. > >> > >> Such information is needed during tree-object-size.cc. > >> > >>

Re: [PATCH v9 5/5] Add the 6th argument to .ACCESS_WITH_SIZE

2024-05-28 Thread Qing Zhao
> On May 28, 2024, at 03:43, Richard Biener wrote: > > On Fri, Apr 12, 2024 at 3:55 PM Qing Zhao wrote: >> >> to carry the TYPE of the flexible array. >> >> Such information is needed during tree-object-size.cc. >> >> We cannot use the result type or the type of the 1st argument >> of the r

Re: [PATCH v9 5/5] Add the 6th argument to .ACCESS_WITH_SIZE

2024-05-28 Thread Richard Biener
On Fri, Apr 12, 2024 at 3:55 PM Qing Zhao wrote: > > to carry the TYPE of the flexible array. > > Such information is needed during tree-object-size.cc. > > We cannot use the result type or the type of the 1st argument > of the routine .ACCESS_WITH_SIZE to decide the element type > of the original

[PATCH v9 5/5] Add the 6th argument to .ACCESS_WITH_SIZE

2024-04-12 Thread Qing Zhao
to carry the TYPE of the flexible array. Such information is needed during tree-object-size.cc. We cannot use the result type or the type of the 1st argument of the routine .ACCESS_WITH_SIZE to decide the element type of the original array due to possible type casting in the source code. gcc/c/C