Skip to content

Commit 3e44287

Browse files
committed
also ban soft-float target features on ARM
1 parent 25e11b1 commit 3e44287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_target/src/target_features.rs

+2
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ const ARM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
9292
("dotprod", Unstable(sym::arm_target_feature), &["neon"]),
9393
("dsp", Unstable(sym::arm_target_feature), &[]),
9494
("fp-armv8", Unstable(sym::arm_target_feature), &["vfp4"]),
95+
("fpregs", Forbidden, &[]), // changes float ABI
9596
("i8mm", Unstable(sym::arm_target_feature), &["neon"]),
9697
("mclass", Unstable(sym::arm_target_feature), &[]),
9798
("neon", Unstable(sym::arm_target_feature), &["vfp3"]),
9899
("rclass", Unstable(sym::arm_target_feature), &[]),
99100
("sha2", Unstable(sym::arm_target_feature), &["neon"]),
101+
("soft-float", Forbidden, &[]), // changes float ABI
100102
// This is needed for inline assembly, but shouldn't be stabilized as-is
101103
// since it should be enabled per-function using #[instruction_set], not
102104
// #[target_feature].

0 commit comments

Comments
 (0)