Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2023 19:23:20 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ec41a96daaa6 - main - sys: Switch the kernel's C standard from C99 to GNU99.
Message-ID:  <202307011923.361JNKf8070307@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec41a96daaa6e401bc0d4ba71d9cf37a1d79fc86

commit ec41a96daaa6e401bc0d4ba71d9cf37a1d79fc86
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-07-01 19:21:13 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-07-01 19:21:13 +0000

    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
---
 sys/conf/kern.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307011923.361JNKf8070307>