Re:-fbounds-safety: Enforcing bounds safety for C
by pezgrande on Thursday February 19, 2026 @09:17AM
(#47073974)
does any distro uses clang? I thought all linux kernels were compiled using gcc.
[ Parent
| on HN ]
Re:-fbounds-safety: Enforcing bounds safety for C
by zmodem on Thursday February 19, 2026 @10:01AM
(#47074520)
Not a Linux distro, but FreeBSD uses Clang.
And Android uses Clang for its Linux kernel.
-fbounds-safety is not yet available in upstream Clang though:
> NOTE: This is a design document and the feature is not available for users yet.
Re:-fbounds-safety: Enforcing bounds safety for C
by honktime on Thursday February 19, 2026 @10:44AM
(#47075031)
Chimera does, it also has a FreeBSD userland AFAIU.
Re:-fbounds-safety: Enforcing bounds safety for C
by pezgrande on Friday February 20, 2026 @04:30AM
(#47085665)
hm this one is interesting. Thanks for sharing!
Re:-fbounds-safety: Enforcing bounds safety for C
by yjftsjthsd-h on Thursday February 19, 2026 @01:17PM
(#47077024)
https://www.kernel.org/doc/html/latest/kbuild/llvm.html
> The Linux kernel has always traditionally been compiled with GNU toolchains such as GCC and binutils. Ongoing work has allowed for Clang and LLVM utilities to be used as viable substitutes. Distributions such as Android, ChromeOS, OpenMandriva, and Chimera Linux use Clang built kernels. Google’s and Meta’s datacenter fleets also run kernels built with Clang.