]> git.proxmox.com Git - rustc.git/blame - src/librustc_target/spec/thumbv7neon_unknown_linux_gnueabihf.rs
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_target / spec / thumbv7neon_unknown_linux_gnueabihf.rs
CommitLineData
9fa01778 1use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
0731742a
XL
2
3// This target is for glibc Linux on ARMv7 with thumb mode enabled
4// (for consistency with Android and Debian-based distributions)
5// and with NEON unconditionally enabled and, therefore, with 32 FPU
6// registers enabled as well. See section A2.6.2 on page A2-56 in
7// https://static.docs.arm.com/ddi0406/cd/DDI0406C_d_armv7ar_arm.pdf
8
9pub fn target() -> TargetResult {
10 let base = super::linux_base::opts();
11 Ok(Target {
12 llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
13 target_endian: "little".to_string(),
14 target_pointer_width: "32".to_string(),
15 target_c_int_width: "32".to_string(),
416331ca 16 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
0731742a
XL
17 arch: "arm".to_string(),
18 target_os: "linux".to_string(),
19 target_env: "gnu".to_string(),
20 target_vendor: "unknown".to_string(),
21 linker_flavor: LinkerFlavor::Gcc,
22
23 options: TargetOptions {
24 // Info about features at https://wiki.debian.org/ArmHardFloatPort
25 features: "+v7,+thumb-mode,+thumb2,+vfp3,+neon".to_string(),
26 cpu: "generic".to_string(),
27 max_atomic_width: Some(64),
f035d41b 28 unsupported_abis: super::arm_base::unsupported_abis(),
dfeec247
XL
29 ..base
30 },
0731742a
XL
31 })
32}