Re: VLA representation in GCC internals

2024-11-11 Thread Joseph Myers via Gcc
On Sat, 9 Nov 2024, Martin Uecker via Gcc wrote: > BTW: My main practical issue with zero-sized arrays is that the > UB sanitizers triggers for zero-sized variable arrays. They are after all UB in standard C. (Note for example that the UB sanitizers cover all cases of shifts that are undefined

Re: VLA representation in GCC internals

2024-11-09 Thread Martin Uecker via Gcc
Am Samstag, dem 09.11.2024 um 11:29 +0100 schrieb Alejandro Colomar via Gcc: > On Sat, Nov 09, 2024 at 09:38:45AM GMT, Martin Uecker wrote: > > Am Samstag, dem 09.11.2024 um 00:54 +0100 schrieb Alejandro Colomar via Gcc: > > > Hi Martin, > > > > > > I'm in the process of rebasing my __countof__ ch

Re: VLA representation in GCC internals

2024-11-09 Thread Alejandro Colomar via Gcc
Hi Martin, On Sat, Nov 09, 2024 at 11:34:58AM GMT, Martin Uecker wrote: > > > You can just eliminate the code for the star as it would now > > > automatically end up as variable. > > > > Thanks! > > > > Have a lovely day! > > Alex > > Just committed, so you could rebase on trunk now. Thanks!

Re: VLA representation in GCC internals

2024-11-09 Thread Alejandro Colomar via Gcc
On Sat, Nov 09, 2024 at 09:38:45AM GMT, Martin Uecker wrote: > Am Samstag, dem 09.11.2024 um 00:54 +0100 schrieb Alejandro Colomar via Gcc: > > Hi Martin, > > > > I'm in the process of rebasing my __countof__ changes after your patch > > that fixes support for [*] and [0]. > > > > I should update

Re: VLA representation in GCC internals

2024-11-09 Thread Martin Uecker via Gcc
Am Samstag, dem 09.11.2024 um 00:54 +0100 schrieb Alejandro Colomar via Gcc: > Hi Martin, > > I'm in the process of rebasing my __countof__ changes after your patch > that fixes support for [*] and [0]. > > I should update the implementation of the following function: > > static bool >