Skip to content

Commit 6f7fd11

Browse files
committed
rustc_target: Add msync target feature and enable it on powerpcspe targets
1 parent 8c39296 commit 6f7fd11

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

Diff for: compiler/rustc_target/src/spec/targets/powerpc_unknown_linux_gnuspe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub(crate) fn target() -> Target {
2424
options: TargetOptions {
2525
abi: "spe".into(),
2626
endian: Endian::Big,
27-
features: "+secure-plt".into(),
27+
features: "+secure-plt,+msync".into(),
2828
mcount: "_mcount".into(),
2929
..base
3030
},

Diff for: compiler/rustc_target/src/spec/targets/powerpc_unknown_linux_muslspe.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub(crate) fn target() -> Target {
2626
options: TargetOptions {
2727
abi: "spe".into(),
2828
endian: Endian::Big,
29+
features: "+msync".into(),
2930
mcount: "_mcount".into(),
3031
..base
3132
},

Diff for: compiler/rustc_target/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ const HEXAGON_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
461461
static POWERPC_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
462462
// tidy-alphabetical-start
463463
("altivec", Unstable(sym::powerpc_target_feature), &[]),
464+
("msync", Unstable(sym::powerpc_target_feature), &[]),
464465
("partword-atomics", Unstable(sym::powerpc_target_feature), &[]),
465466
("power10-vector", Unstable(sym::powerpc_target_feature), &["power9-vector"]),
466467
("power8-altivec", Unstable(sym::powerpc_target_feature), &["altivec"]),

Diff for: tests/ui/check-cfg/target_feature.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
151151
`mp`
152152
`mp1e2`
153153
`msa`
154+
`msync`
154155
`mte`
155156
`multivalue`
156157
`mutable-globals`

0 commit comments

Comments
 (0)