Description: Various fixes for Rust on MIPS Author: Dragan Mladjenovic Bug-Debian: https://bugs.debian.org/881845 Last-Update: 2020-03-23 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -98,6 +98,12 @@ // during inlining. Unfortunately these may block other optimizations. add("-preserve-alignment-assumptions-during-inlining=false", false); + if sess.target.arch == "mips" + || sess.target.arch == "mips64" + { + add("-fast-isel=0", false); + } + for arg in sess_args { add(&(*arg), true); }