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
F102811906: D40646.diff
Sun, Nov 17, 12:22 PM
Unknown Object (File)
Fri, Nov 8, 1:28 AM
Unknown Object (File)
Sep 30 2024, 6:36 PM
Unknown Object (File)
Sep 24 2024, 3:36 AM
Unknown Object (File)
Sep 23 2024, 4:29 AM
Unknown Object (File)
Sep 22 2024, 8:14 PM
Unknown Object (File)
Sep 18 2024, 10:07 PM
Unknown Object (File)
Sep 13 2024, 11:54 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 52181
Build 49072: arc lint + arc unit

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.