Skip to content

Commit 8a0666d

Browse files
committed
rename to thumbv8m.base-none-eabi, fix strict alignment
1 parent 0e13105 commit 8a0666d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/librustc_target/spec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ supported_targets! {
397397
("thumbv7m-none-eabi", thumbv7m_none_eabi),
398398
("thumbv7em-none-eabi", thumbv7em_none_eabi),
399399
("thumbv7em-none-eabihf", thumbv7em_none_eabihf),
400-
("thumbv8m-none-eabi", thumbv8m_none_eabi),
400+
("thumbv8m.base-none-eabi", thumbv8m_base_none_eabi),
401401

402402
("msp430-none-elf", msp430_none_elf),
403403

src/librustc_target/spec/thumbv8m_none_eabi.rs renamed to src/librustc_target/spec/thumbv8m_base_none_eabi.rs

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ pub fn target() -> TargetResult {
2626
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
2727

2828
options: TargetOptions {
29+
// ARMv8-M baseline doesn't support unaligned loads/stores so we disable them
30+
// with +strict-align.
31+
features: "+strict-align".to_string(),
2932
max_atomic_width: Some(32),
3033
.. super::thumb_base::opts()
3134
},

0 commit comments

Comments
 (0)