Skip to content

Commit 3170b62

Browse files
committed
Use new feature names in target feature lists
1 parent b57c499 commit 3170b62

9 files changed

+12
-12
lines changed

src/librustc_target/spec/armebv7r_none_eabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn target() -> TargetResult {
2121
linker: Some("rust-lld".to_owned()),
2222
relocation_model: "static".to_string(),
2323
panic_strategy: PanicStrategy::Abort,
24-
features: "+vfp3,+d16,+fp-only-sp".to_string(),
24+
features: "+vfp3,-d32,-fp16".to_string(),
2525
max_atomic_width: Some(32),
2626
abi_blacklist: super::arm_base::abi_blacklist(),
2727
emit_debug_gdb_scripts: false,

src/librustc_target/spec/armv7_linux_androideabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
1010

1111
pub fn target() -> TargetResult {
1212
let mut base = super::android_base::opts();
13-
base.features = "+v7,+thumb-mode,+thumb2,+vfp3,+d16,-neon".to_string();
13+
base.features = "+v7,+thumb-mode,+thumb2,+vfp3,-d32,-neon".to_string();
1414
base.max_atomic_width = Some(64);
1515
base.pre_link_args
1616
.get_mut(&LinkerFlavor::Gcc).unwrap().push("-march=armv7-a".to_string());

src/librustc_target/spec/armv7_unknown_freebsd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> TargetResult {
1515
linker_flavor: LinkerFlavor::Gcc,
1616

1717
options: TargetOptions {
18-
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
18+
features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
1919
max_atomic_width: Some(64),
2020
abi_blacklist: super::arm_base::abi_blacklist(),
2121
target_mcount: "\u{1}__gnu_mcount_nc".to_string(),

src/librustc_target/spec/armv7_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn target() -> TargetResult {
1919

2020
options: TargetOptions {
2121
// Info about features at https://wiki.debian.org/ArmHardFloatPort
22-
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
22+
features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
2323
cpu: "generic".to_string(),
2424
max_atomic_width: Some(64),
2525
abi_blacklist: super::arm_base::abi_blacklist(),

src/librustc_target/spec/armv7_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn target() -> TargetResult {
2222
// Most of these settings are copied from the armv7_unknown_linux_gnueabihf
2323
// target.
2424
options: TargetOptions {
25-
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
25+
features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
2626
cpu: "generic".to_string(),
2727
max_atomic_width: Some(64),
2828
abi_blacklist: super::arm_base::abi_blacklist(),

src/librustc_target/spec/armv7_unknown_netbsd_eabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> TargetResult {
1515
linker_flavor: LinkerFlavor::Gcc,
1616

1717
options: TargetOptions {
18-
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
18+
features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
1919
cpu: "generic".to_string(),
2020
max_atomic_width: Some(64),
2121
abi_blacklist: super::arm_base::abi_blacklist(),

src/librustc_target/spec/armv7r_none_eabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn target() -> TargetResult {
2121
linker: Some("rust-lld".to_owned()),
2222
relocation_model: "static".to_string(),
2323
panic_strategy: PanicStrategy::Abort,
24-
features: "+vfp3,+d16,+fp-only-sp".to_string(),
24+
features: "+vfp3,-d32,-fp16".to_string(),
2525
max_atomic_width: Some(32),
2626
abi_blacklist: super::arm_base::abi_blacklist(),
2727
emit_debug_gdb_scripts: false,

src/librustc_target/spec/thumbv7em_none_eabihf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Additionally, this target uses the "hard" floating convention (ABI) where floating point values
77
// are passed to/from subroutines via FPU registers (S0, S1, D0, D1, etc.).
88
//
9-
// To opt into double precision hardware support, use the `-C target-feature=-fp-only-sp` flag.
9+
// To opt into double precision hardware support, use the `-C target-feature=+fp64` flag.
1010

1111
use crate::spec::{LinkerFlavor, LldFlavor, Target, TargetOptions, TargetResult};
1212

@@ -26,14 +26,14 @@ pub fn target() -> TargetResult {
2626
options: TargetOptions {
2727
// `+vfp4` is the lowest common denominator between the Cortex-M4 (vfp4-16) and the
2828
// Cortex-M7 (vfp5)
29-
// `+d16` both the Cortex-M4 and the Cortex-M7 only have 16 double-precision registers
29+
// `-d32` both the Cortex-M4 and the Cortex-M7 only have 16 double-precision registers
3030
// available
31-
// `+fp-only-sp` The Cortex-M4 only supports single precision floating point operations
31+
// `-fp64` The Cortex-M4 only supports single precision floating point operations
3232
// whereas in the Cortex-M7 double precision is optional
3333
//
3434
// Reference:
3535
// ARMv7-M Architecture Reference Manual - A2.5 The optional floating-point extension
36-
features: "+vfp4,+d16,+fp-only-sp".to_string(),
36+
features: "+vfp4,-d32,-fp64".to_string(),
3737
max_atomic_width: Some(32),
3838
.. super::thumb_base::opts()
3939
}

src/librustc_target/spec/thumbv8m_main_none_eabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn target() -> TargetResult {
2222
// the FPU uses the FPv5 architecture, single-precision instructions
2323
// and 16 D registers.
2424
// These parameters map to the following LLVM features.
25-
features: "+fp-armv8,+fp-only-sp,+d16".to_string(),
25+
features: "+fp-armv8,-fp64,-d32".to_string(),
2626
max_atomic_width: Some(32),
2727
.. super::thumb_base::opts()
2828
},

0 commit comments

Comments
 (0)