Page MenuHomeFreeBSD

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

Authored by jhb on Jun 20 2023, 2:54 PM.
Tags
None
Referenced Files
F172221723: D40646.id123517.diff
Wed, Sep 16, 11:50 PM
F172221617: D40646.id124074.diff
Wed, Sep 16, 11:48 PM
F172221540: D40646.diff
Wed, Sep 16, 11:47 PM
Unknown Object (File)
Thu, Sep 10, 4:11 PM
Unknown Object (File)
Wed, Sep 9, 6:59 PM
Unknown Object (File)
Sun, Sep 6, 8:21 AM
Unknown Object (File)
Sun, Sep 6, 12:39 AM
Unknown Object (File)
Sat, Sep 5, 2:59 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp added inline comments.
sys/conf/kern.mk
289

I have changes that remove support for k7r, c90 and c95 here.
Comments on committing that?

This revision is now accepted and ready to land.Jun 20 2023, 2:59 PM
sys/conf/kern.mk
319

Also, we can likely remove this line.

sys/conf/kern.mk
289

I think that's fine, we aren't likely to compile as pre-C99 now.

319

Yes. this is now stale.