Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c9b4c63

Browse files
authoredMay 8, 2023
Rollup merge of #110377 - chrisnc:armv7-atomic-64, r=cjgillot
Update max_atomic_width of armv7r and armv7_sony_vita targets to 64. All armv7a and armv7r implementations support `ldrexd`/`strexd`, only armv7m does not.
2 parents e3eb6a8 + bf264c7 commit c9b4c63

5 files changed

+5
-5
lines changed
 

‎compiler/rustc_target/src/spec/armebv7r_none_eabi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn target() -> Target {
1616
linker: Some("rust-lld".into()),
1717
relocation_model: RelocModel::Static,
1818
panic_strategy: PanicStrategy::Abort,
19-
max_atomic_width: Some(32),
19+
max_atomic_width: Some(64),
2020
emit_debug_gdb_scripts: false,
2121
// GCC and Clang default to 8 for arm-none here
2222
c_enum_min_bits: Some(8),

‎compiler/rustc_target/src/spec/armebv7r_none_eabihf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn target() -> Target {
1717
relocation_model: RelocModel::Static,
1818
panic_strategy: PanicStrategy::Abort,
1919
features: "+vfp3,-d32,-fp16".into(),
20-
max_atomic_width: Some(32),
20+
max_atomic_width: Some(64),
2121
emit_debug_gdb_scripts: false,
2222
// GCC and Clang default to 8 for arm-none here
2323
c_enum_min_bits: Some(8),

‎compiler/rustc_target/src/spec/armv7_sony_vita_newlibeabihf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn target() -> Target {
3333
pre_link_args,
3434
exe_suffix: ".elf".into(),
3535
panic_strategy: PanicStrategy::Abort,
36-
max_atomic_width: Some(32),
36+
max_atomic_width: Some(64),
3737
..Default::default()
3838
},
3939
}

‎compiler/rustc_target/src/spec/armv7r_none_eabi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> Target {
1515
linker: Some("rust-lld".into()),
1616
relocation_model: RelocModel::Static,
1717
panic_strategy: PanicStrategy::Abort,
18-
max_atomic_width: Some(32),
18+
max_atomic_width: Some(64),
1919
emit_debug_gdb_scripts: false,
2020
// GCC and Clang default to 8 for arm-none here
2121
c_enum_min_bits: Some(8),

‎compiler/rustc_target/src/spec/armv7r_none_eabihf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn target() -> Target {
1616
relocation_model: RelocModel::Static,
1717
panic_strategy: PanicStrategy::Abort,
1818
features: "+vfp3,-d32,-fp16".into(),
19-
max_atomic_width: Some(32),
19+
max_atomic_width: Some(64),
2020
emit_debug_gdb_scripts: false,
2121
// GCC and Clang default to 8 for arm-none here
2222
c_enum_min_bits: Some(8),

0 commit comments

Comments
 (0)
Failed to load comments.