From 726b3d1cecf0bde4144256a8198b1d38782c024b Mon Sep 17 00:00:00 2001 From: Dragan Mladjenovic Date: Thu, 6 Aug 2020 21:11:39 +0100 Subject: [PATCH] Various fixes for Rust on MIPS Bug-Debian: https://bugs.debian.org/881845 Last-Update: 2020-03-23 Gbp-Pq: Name u-mips-fixes.diff --- src/librustc_codegen_llvm/llvm_util.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs index 67a2251e85..512fd6d382 100644 --- a/src/librustc_codegen_llvm/llvm_util.rs +++ b/src/librustc_codegen_llvm/llvm_util.rs @@ -105,6 +105,12 @@ unsafe fn configure_llvm(sess: &Session) { // during inlining. Unfortunately these may block other optimizations. add("-preserve-alignment-assumptions-during-inlining=false", false); + if sess.target.target.arch == "mips" + || sess.target.target.arch == "mips64" + { + add("-fast-isel=0", false); + } + for arg in sess_args { add(&(*arg), true); } -- 2.30.2