From 0d727e54f06e9ab3e15f78f9434b0a52c2197047 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 19 Mar 2026 22:29:49 +0000 Subject: [PATCH] llvm: Update `reliable_f128` configuration for LLVM22 on Sparc LLVM22 should have resolved issues with the `f128` ABI, meaning we can now set `cfg(target_has_reliable_f128)` on the platform. Link: https://github.com/llvm/llvm-project/commit/3e16aef2a650a8c2da4ebd5c58c6a9e261361828 --- compiler/rustc_codegen_llvm/src/llvm_util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 2423880ab869..45e16a735fed 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -394,8 +394,8 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) { // ABI bugs et al. (full // list at ) (Arch::PowerPC | Arch::PowerPC64, _) => false, - // ABI unsupported - (Arch::Sparc, _) => false, + // ABI unsupported (fixed in llvm22) + (Arch::Sparc, _) if major < 22 => false, // MinGW ABI bugs (Arch::X86_64, Os::Windows) if *target_env == Env::Gnu && *target_abi != Abi::Llvm => false, // There are no known problems on other platforms, so the only requirement is that symbols