]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/armv7r_none_eabi.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / armv7r_none_eabi.rs
CommitLineData
b7449926
XL
1// Targets the Little-endian Cortex-R4/R5 processor (ARMv7-R)
2
f9f354fc 3use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel};
29967ef6 4use crate::spec::{Target, TargetOptions};
b7449926 5
29967ef6
XL
6pub fn target() -> Target {
7 Target {
5e7ed085 8 llvm_target: "armv7r-unknown-none-eabi".into(),
29967ef6 9 pointer_width: 32,
5e7ed085
FG
10 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
11 arch: "arm".into(),
b7449926
XL
12
13 options: TargetOptions {
5e7ed085 14 abi: "eabi".into(),
29967ef6 15 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
b7449926 16 executables: true,
5e7ed085 17 linker: Some("rust-lld".into()),
f9f354fc 18 relocation_model: RelocModel::Static,
b7449926
XL
19 panic_strategy: PanicStrategy::Abort,
20 max_atomic_width: Some(32),
b7449926 21 emit_debug_gdb_scripts: false,
94222f64
XL
22 // GCC and Clang default to 8 for arm-none here
23 c_enum_min_bits: 8,
dfeec247 24 ..Default::default()
b7449926 25 },
29967ef6 26 }
b7449926 27}