sys: Switch the kernel's C standard from C99 to GNU99.

This matches the default used in userland, and the kernel already
depends on various GNU extensions to standard C that are supported by
both clang and GCC.

This should be a no-op for clang, but for GCC it enables some GNU
extensions that aren't otherwise enabled.  It also enables GCC for
i386 to avoid the need for a floatundidf intrinsic in libkern.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D40646
This commit is contained in:
John Baldwin 2023-07-01 12:21:13 -07:00
parent 2cab2d43b8
commit ec41a96daa

View File

@ -278,7 +278,7 @@ PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \
.PHONY: ${PHONY_NOTMAIN}
.NOTMAIN: ${PHONY_NOTMAIN}
CSTD= c99
CSTD= gnu99
.if ${CSTD} == "k&r"
CFLAGS+= -traditional