From b67a656a7ab31995266811c40f899f81f0ab7acb Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 2 Sep 2024 16:23:26 +0200 Subject: [PATCH] also ban soft-float target feature on ARM --- compiler/rustc_target/src/target_features.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs index 10b42a0500a6..7d65bdf4dc57 100644 --- a/compiler/rustc_target/src/target_features.rs +++ b/compiler/rustc_target/src/target_features.rs @@ -97,6 +97,7 @@ const ARM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[ ("neon", Unstable(sym::arm_target_feature), &["vfp3"]), ("rclass", Unstable(sym::arm_target_feature), &[]), ("sha2", Unstable(sym::arm_target_feature), &["neon"]), + ("soft-float", Forbidden, &[]), // changes float ABI // This is needed for inline assembly, but shouldn't be stabilized as-is // since it should be enabled per-function using #[instruction_set], not // #[target_feature].