On Tue, Apr 9, 2024 at 12:31 PM Will Deacon <will@xxxxxxxxxx> wrote: > > I think we have time to do this properly, like we did for the clang > enablement a few years ago. In hindsight, avoiding hacks for the early > toolchains back then was a really good idea because it meant we could > rely on a solid baseline set of compiler features from the start. Yeah, it sounds fair, thanks! After the warning is fixed (i.e. `-Zfixed-x18` or similar is implemented etc.), I would recommend adding support to the kernel for the `-Z` (unstable) flags, similar to this patch, in order to test them easily and getting `rustc` to stabilize them. Then the only change required should be a name change to `-C` or similar. Cheers, Miguel