aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-07-01 19:21:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-07-01 19:21:13 +0000
commitec41a96daaa6e401bc0d4ba71d9cf37a1d79fc86 (patch)
tree6e519e156592be467ad6d9c584df70d826a54e04
parent2cab2d43b83bddd44ecc1f267afb5e2725975ac7 (diff)
downloadsrc-ec41a96daaa6e401bc0d4ba71d9cf37a1d79fc86.tar.gz
src-ec41a96daaa6e401bc0d4ba71d9cf37a1d79fc86.zip
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
-rw-r--r--sys/conf/kern.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 9e977a6e4a01..51bbfcbaa617 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -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