rename to thumbv8m.base-none-eabi, fix strict alignment

This commit is contained in:
eV 2018-10-19 04:51:02 +00:00
parent 0e131052f6
commit 8a0666d5cc
2 changed files with 4 additions and 1 deletions

View file

@ -397,7 +397,7 @@ supported_targets! {
("thumbv7m-none-eabi", thumbv7m_none_eabi),
("thumbv7em-none-eabi", thumbv7em_none_eabi),
("thumbv7em-none-eabihf", thumbv7em_none_eabihf),
("thumbv8m-none-eabi", thumbv8m_none_eabi),
("thumbv8m.base-none-eabi", thumbv8m_base_none_eabi),
("msp430-none-elf", msp430_none_elf),

View file

@ -26,6 +26,9 @@ pub fn target() -> TargetResult {
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
options: TargetOptions {
// ARMv8-M baseline doesn't support unaligned loads/stores so we disable them
// with +strict-align.
features: "+strict-align".to_string(),
max_atomic_width: Some(32),
.. super::thumb_base::opts()
},