]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/sparc_unknown_linux_gnu.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / sparc_unknown_linux_gnu.rs
CommitLineData
5869c6ff 1use crate::abi::Endian;
29967ef6 2use crate::spec::{LinkerFlavor, Target};
0531ce1d 3
29967ef6
XL
4pub fn target() -> Target {
5 let mut base = super::linux_gnu_base::opts();
5869c6ff 6 base.endian = Endian::Big;
0531ce1d
XL
7 base.cpu = "v9".to_string();
8 base.max_atomic_width = Some(64);
9 base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-mv8plus".to_string());
0531ce1d 10
29967ef6 11 Target {
0531ce1d 12 llvm_target: "sparc-unknown-linux-gnu".to_string(),
29967ef6 13 pointer_width: 32,
0531ce1d
XL
14 data_layout: "E-m:e-p:32:32-i64:64-f128:64-n32-S64".to_string(),
15 arch: "sparc".to_string(),
0531ce1d 16 options: base,
29967ef6 17 }
0531ce1d 18}