On Tue May 26, 2026 at 9:52 AM BST, Mukesh Kumar Chaurasiya wrote: > On Mon, May 25, 2026 at 08:16:53PM +0200, Miguel Ojeda wrote: >> On Wed, May 20, 2026 at 8:48 AM Mukesh Kumar Chaurasiya (IBM) >> <[email protected]> wrote: >> > >> > Minimum `rustc` version required for powerpc is 1.95 as some critical >> > features required for compiling rust code for kernel are not there. >> >> Which critical features? > Hey Miguel, > > Right now i can only think of inline asm. I can rerun the whole thing > with 1.85 and figure out the issues with 1.85. I'll get back on this. > >> >> > For example Stable inline asm support which got merged in 1.95. >> >> It is not needed that the support is stable, but rather that >> everything you may need works. >> > I wanted inline asm be stable, I was skeptical about inline asm to be > unstable and potentially messing up the whole system. That's the reason > I waited for the stable support to get merged before sending out this > patch series.
AFAIK inline asm is only unstable for archs for their surface syntax (i.e. name of register and classes). The rest is just LLVM inline asm. If there're codegen issues, you should gate on LLVM version instead (Rust supports multiple LLVM versions in a single release and distro may use different LLVM than rustup's). Best, Gary
