[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Introduce C2X _Static_assert syntax

From: Michael Matz
Subject: Re: [Tinycc-devel] Introduce C2X _Static_assert syntax
Date: Tue, 3 Mar 2020 18:47:03 +0000 (UTC)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)


On Sat, 29 Feb 2020, uso ewin wrote:

> Hello, as I was working on fixing _Static_assert bug,
> I've saw that it was fairly easy to add C2x _Static_assert
> syntax support to tinycc.
> the code is here: https://github.com/cosmo-ray/tcc/commits/static_assert_c2x
> The only difference with current _Static_assert is
> that we can omit the literal string.
> Is the code okay ?
> Are you ok to introduce C2x feature to tinycc ? (gcc allow this too)

Fine with me at least.  I'd say also without testing for anything like 
-std=c2x, your call.

I have a mild preference for using parse_mult_str no matter if the 
condition is true or false, obviating the need for an extra loop to skip 
the STR tokens.  Remember that you need to cstr_free the string in that 
case (which you can avoid right now only because tcc_error doesn't 


> I won't push this if I don't have a go from peoples here
> because C2x isn't standard yet.
> Matthias,
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]