]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/armv7r_none_eabihf.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / armv7r_none_eabihf.rs
CommitLineData
b7449926
XL
1// Targets the Little-endian Cortex-R4F/R5F 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 {
ee023bcb 8 llvm_target: "armv7r-unknown-none-eabihf".into(),
29967ef6 9 pointer_width: 32,
ee023bcb
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 {
ee023bcb 14 abi: "eabihf".into(),
29967ef6 15 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
b7449926 16 executables: true,
ee023bcb 17 linker: Some("rust-lld".into()),
f9f354fc 18 relocation_model: RelocModel::Static,
b7449926 19 panic_strategy: PanicStrategy::Abort,
ee023bcb 20 features: "+vfp3,-d32,-fp16".into(),
b7449926 21 max_atomic_width: Some(32),
b7449926 22 emit_debug_gdb_scripts: false,
94222f64
XL
23 // GCC and Clang default to 8 for arm-none here
24 c_enum_min_bits: 8,
dfeec247 25 ..Default::default()
b7449926 26 },
29967ef6 27 }
b7449926 28}