about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2025-01-28 14:11:33 +0900
committerTaiki Endo <te316e89@gmail.com>2025-01-28 14:11:33 +0900
commit7f83f8ae727adb4893a83abea9d5dc0ea5a9b149 (patch)
tree25ceaec7a2180d2133137ec7bbf8be3b552b4d2a
parent0cffe5cb95e36d45a3e61f7b1f5a9b21eddd77b4 (diff)
downloadrust-7f83f8ae727adb4893a83abea9d5dc0ea5a9b149.tar.gz
rust-7f83f8ae727adb4893a83abea9d5dc0ea5a9b149.zip
Reject unsound toggling of Arm atomics-32 target feature
-rw-r--r--compiler/rustc_target/src/target_features.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/target_features.rs b/compiler/rustc_target/src/target_features.rs
index 9fd07c8634a..46e29304502 100644
--- a/compiler/rustc_target/src/target_features.rs
+++ b/compiler/rustc_target/src/target_features.rs
@@ -137,6 +137,11 @@ const ARM_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
     // tidy-alphabetical-start
     ("aclass", Unstable(sym::arm_target_feature), &[]),
     ("aes", Unstable(sym::arm_target_feature), &["neon"]),
+    (
+        "atomics-32",
+        Stability::Forbidden { reason: "unsound because it changes the ABI of atomic operations" },
+        &[],
+    ),
     ("crc", Unstable(sym::arm_target_feature), &[]),
     ("d32", Unstable(sym::arm_target_feature), &[]),
     ("dotprod", Unstable(sym::arm_target_feature), &["neon"]),