mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 19:32:02 +00:00
21 lines
673 B
Diff
21 lines
673 B
Diff
Description: Various fixes for Rust on MIPS
|
|
Author: Dragan Mladjenovic <dmladjenovic@wavecomp.com>
|
|
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);
|
|
}
|