]> git.lizzy.rs Git - rust.git/blob - src/librustc_target/spec/s390x_unknown_linux_gnu.rs
Rollup merge of #61675 - fintelia:riscv-frame-pointer, r=nagisa
[rust.git] / src / librustc_target / spec / s390x_unknown_linux_gnu.rs
1 use crate::spec::{LinkerFlavor, Target, TargetResult};
2
3 pub fn target() -> TargetResult {
4     let mut base = super::linux_base::opts();
5     // z10 is the oldest CPU supported by LLVM
6     base.cpu = "z10".to_string();
7     // FIXME: The data_layout string below and the ABI implementation in
8     // cabi_s390x.rs are for now hard-coded to assume the no-vector ABI.
9     // Pass the -vector feature string to LLVM to respect this assumption.
10     base.features = "-vector".to_string();
11     base.max_atomic_width = Some(64);
12     base.min_global_align = Some(16);
13
14     Ok(Target {
15         llvm_target: "s390x-unknown-linux-gnu".to_string(),
16         target_endian: "big".to_string(),
17         target_pointer_width: "64".to_string(),
18         target_c_int_width: "32".to_string(),
19         data_layout: "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64".to_string(),
20         arch: "s390x".to_string(),
21         target_os: "linux".to_string(),
22         target_env: "gnu".to_string(),
23         target_vendor: "unknown".to_string(),
24         linker_flavor: LinkerFlavor::Gcc,
25         options: base,
26     })
27 }