]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/i686_unknown_openbsd.rs
New upstream version 1.52.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / i686_unknown_openbsd.rs
CommitLineData
5869c6ff 1use crate::spec::{LinkerFlavor, StackProbeType, Target};
476ff2be 2
29967ef6 3pub fn target() -> Target {
476ff2be
SL
4 let mut base = super::openbsd_base::opts();
5 base.cpu = "pentium4".to_string();
6 base.max_atomic_width = Some(64);
cc61c64b 7 base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());
94b46f34 8 base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-fuse-ld=lld".to_string());
36d6ef2b
XL
9 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
10 base.stack_probes = StackProbeType::Call;
476ff2be 11
29967ef6 12 Target {
476ff2be 13 llvm_target: "i686-unknown-openbsd".to_string(),
29967ef6 14 pointer_width: 32,
dfeec247
XL
15 data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16 f64:32:64-f80:32-n8:16:32-S128"
17 .to_string(),
476ff2be 18 arch: "x86".to_string(),
476ff2be 19 options: base,
29967ef6 20 }
476ff2be 21}