[Intel-gfx] [PATCH] [v2] Kbuild: move to -std=gnu11

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Mar 1 10:43:53 UTC 2022


On Mon, Feb 28, 2022 at 11:32 AM Arnd Bergmann <arnd at kernel.org> wrote:
>
> -under ``-std=gnu89`` [gcc-c-dialect-options]_: the GNU dialect of ISO C90
> -(including some C99 features). ``clang`` [clang]_ is also supported, see
> +under ``-std=gnu11`` [gcc-c-dialect-options]_: the GNU dialect of ISO C11
> +(including some C17 features). ``clang`` [clang]_ is also supported, see

I think the "(including some C17)" bit would not make much sense
anymore. There were no major changes in C17 and GCC implements
`-std=c11` and `-std=c17` as basically the same thing according to the
docs (and GNU extensions apply equally to both, I would assume).

When I wrote the "(including some C99 features)" I meant that GCC
implemented some C99 features as extensions in C90 mode, and the
kernel used some of those (e.g. the now gone VLAs).

With that changed, for `programming-language.rst`:

Reviewed-by: Miguel Ojeda <ojeda at kernel.org>

Cheers,
Miguel


More information about the Intel-gfx mailing list