tech-kern archive

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

Re: Do all -current compilers support C23 typed enum syntax?



Taylor R Campbell <riastradh%NetBSD.org@localhost> writes:

> The discussion prompting the change from -std=gnu99 to -std=gnu11 was
> here:
>
> https://mail-index.netbsd.org/tech-kern/2025/01/05/msg029919.html
>
> With some followon discussion about -std=gnu11 vs -std=c11 and why
> switching to the latter is a bad idea:
>
> PR toolchain/58969: use of alloca is warning, not error, with -std=c11
> https://gnats.netbsd.org/58969
>
> C11 has been mostly uncontroversial, in contrast to C23, so it wasn't
> a big discussion.

In that case, it seems like

  # NetBSD sources use C99 style, with some GCC extensions.

should be rewritten, and perhaps psearated into a normative statement
about what ought to be, and descriptive statements about what is and the
resulting accomodations.

The phrase "C99 style" is confusing; I think it refers to a language
specification rather than beyond-standards source code formatting and
whitespace rules.


And sounds good on atf to check things.   Personally I'm ok with
ditching C89 and saying we're in an all-C99 world, but it would be
interesting if others saw that differently.




Home | Main Index | Thread Index | Old Index