Module Name: src Committed By: riastradh Date: Mon Jan 13 15:40:18 UTC 2025
Modified Files: src/share/mk: bsd.sys.mk src/sys/conf: Makefile.kern.inc Log Message: Switch from -std=gnu99 to -std=gnu11 by default. This is needed for newer language syntax like u"foo" for UTF-16 string literals in UEFI. As proposed on tech-kern: https://mail-index.netbsd.org/tech-kern/2025/01/05/msg029919.html Some commentators requested -std=c11 instead of -std=gnu11, but that requires additional work -- some of it is a matter of providing asm and typeof as aliases for __asm__ and __typeof__, but there's other issues that need to be resolved too like PR toolchain/58969: use of alloca is warning, not error, with -std=c11. This is a smaller incremental change. PR toolchain/58962: clang build broken by C11 features with -std=gnu99 To generate a diff of this commit: cvs rdiff -u -r1.316 -r1.317 src/share/mk/bsd.sys.mk cvs rdiff -u -r1.301 -r1.302 src/sys/conf/Makefile.kern.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.