From: Stephan Date: Mon, 2 Nov 2020 21:52:47 +0000 (+0100) Subject: add blacklist for unsupported calling conventions X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=7d2441134b1b9d3818accd362ec34cbe856036ce;p=rust.git add blacklist for unsupported calling conventions --- diff --git a/compiler/rustc_target/src/spec/mipsel_unknown_none.rs b/compiler/rustc_target/src/spec/mipsel_unknown_none.rs index 79a249a5c13..baa1ed1b056 100644 --- a/compiler/rustc_target/src/spec/mipsel_unknown_none.rs +++ b/compiler/rustc_target/src/spec/mipsel_unknown_none.rs @@ -1,6 +1,7 @@ // Bare MIPS32r2, little endian, softfloat // can be used for MIPS M4K core (e.g. on PIC32MX devices) +use crate::spec::abi::Abi; use crate::spec::{LinkerFlavor, LldFlavor, RelocModel}; use crate::spec::{PanicStrategy, Target, TargetOptions}; @@ -25,6 +26,14 @@ pub fn target() -> Target { linker: Some("rust-lld".to_owned()), panic_strategy: PanicStrategy::Abort, relocation_model: RelocModel::Static, + unsupported_abis: vec![ + Abi::Stdcall, + Abi::Fastcall, + Abi::Vectorcall, + Abi::Thiscall, + Abi::Win64, + Abi::SysV64, + ], emit_debug_gdb_scripts: false, ..Default::default() },