Skip to content

Commit df2d7aa

Browse files
committed
s390x: mark soft-float target feature as incompatible
1 parent 7ad23f4 commit df2d7aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_target/src/target_features.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ const IBMZ_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
849849
("miscellaneous-extensions-3", Unstable(sym::s390x_target_feature), &[]),
850850
("miscellaneous-extensions-4", Unstable(sym::s390x_target_feature), &[]),
851851
("nnp-assist", Unstable(sym::s390x_target_feature), &["vector"]),
852+
("soft-float", Forbidden { reason: "currently unsupported ABI-configuration feature" }, &[]),
852853
("transactional-execution", Unstable(sym::s390x_target_feature), &[]),
853854
("vector", Unstable(sym::s390x_target_feature), &[]),
854855
("vector-enhancements-1", Unstable(sym::s390x_target_feature), &["vector"]),
@@ -1177,6 +1178,11 @@ impl Target {
11771178
_ => unreachable!(),
11781179
}
11791180
}
1181+
"s390x" => {
1182+
// We don't currently support a softfloat target on this architecture.
1183+
// As usual, we have to reject swapping the `soft-float` target feature.
1184+
FeatureConstraints { required: &[], incompatible: &["soft-float"] }
1185+
}
11801186
_ => NOTHING,
11811187
}
11821188
}

0 commit comments

Comments
 (0)