Bump CSTD to gnu11 for world and kernel.
authorSascha Wildner <saw@online.de>
Mon, 19 Dec 2022 11:13:58 +0000 (12:13 +0100)
committerSascha Wildner <saw@online.de>
Mon, 19 Dec 2022 11:13:58 +0000 (12:13 +0100)
commit6a8dae245892a6597947ffc791aac71bc217acb4
tree3e5ac46be6d260467706f8e706fe27ec7a6173dc
parent75d9e519d3a0aa48c42123024ff9e66d78ff455f
Bump CSTD to gnu11 for world and kernel.

In practice, I don't think this will change a lot for base code, and I
am doing it mainly for contrib/ code which might in certain cases use
different paths (for example zstd will). Also affected might be dports
which use base's share/mk infrastructure, of which there are a few.

I have compared the object directories with all temporary files (.s, .i)
between a LINT64 kernel compiled with -std=gnu11 vs. one built with c99
and there were no differences whatsoever.

Thanks to tuxillo for testing with a full bulk build.

Note that the kernel was previously using c99 and has now been switched
to gnu11, not c11. This is because we were always using GNU extensions
in kernel code, so c99 should really have been gnu99 always.

Also note that we could in theory have switched to gnu17 directly since
c17 only addressed some defects in c11 and did not add new features,
but I chose to use 11 because our secondary compiler does not support
17.

Reminded-by: Peeter Must
share/man/man5/make.conf.5
share/mk/bsd.sys.mk
sys/conf/bsd.kern.mk