VLA representation in GCC internals

Alejandro Colomar alx@kernel.org
Sat Nov 9 10:45:44 GMT 2024


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!  I read your mail just a few seconds before starting the
hours-long regression testing.  Just in time.  :-)

> I also wanted to change zero representation to be the same as
> in the C++ FE, but I need to rethink this.  Maybe this change
> already solves most of our problems.

It should.  Thankfully, I already wrote the tests for when this got
fixed, so that I should only need to comment/uncomment them, so that I
wouldn't need to remember what I needed to test.  So, hopefully this
will work out of the box.  :)

> BTW: My main practical issue with zero-sized arrays is that the
> UB sanitizers triggers for zero-sized variable arrays.

Hmmm.

> 
> Martin

Cheers,
Alex

-- 
<https://www.alejandro-colomar.es/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20241109/693d9b37/attachment.sig>


More information about the Gcc mailing list