mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
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:
parent
2cab2d43b8
commit
ec41a96daa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user