]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/mipsel_unknown_none.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / mipsel_unknown_none.rs
CommitLineData
29967ef6
XL
1//! Bare MIPS32r2, little endian, softfloat, O32 calling convention
2//!
3//! Can be used for MIPS M4K core (e.g. on PIC32MX devices)
4
29967ef6
XL
5use crate::spec::{LinkerFlavor, LldFlavor, RelocModel};
6use crate::spec::{PanicStrategy, Target, TargetOptions};
7
8pub fn target() -> Target {
9 Target {
10 llvm_target: "mipsel-unknown-none".to_string(),
11 pointer_width: 32,
12 data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".to_string(),
13 arch: "mips".to_string(),
14
15 options: TargetOptions {
29967ef6
XL
16 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
17 cpu: "mips32r2".to_string(),
18 features: "+mips32r2,+soft-float,+noabicalls".to_string(),
19 max_atomic_width: Some(32),
20 executables: true,
21 linker: Some("rust-lld".to_owned()),
22 panic_strategy: PanicStrategy::Abort,
23 relocation_model: RelocModel::Static,
29967ef6
XL
24 emit_debug_gdb_scripts: false,
25 ..Default::default()
26 },
27 }
28}