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
Unknown Object (File)
Jan 14 2024, 9:13 AM
Unknown Object (File)
Dec 25 2023, 3:14 AM
Unknown Object (File)
Dec 20 2023, 5:00 AM
Unknown Object (File)
Oct 9 2023, 1:09 PM
Unknown Object (File)
Oct 9 2023, 1:09 PM
Unknown Object (File)
Aug 25 2023, 2:07 PM
Unknown Object (File)
Aug 13 2023, 12:34 PM
Unknown Object (File)
Aug 3 2023, 2:30 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 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.