projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
190001f
)
Various fixes for Rust on MIPS
author
Dragan Mladjenovic
<dmladjenovic@wavecomp.com>
Thu, 6 Aug 2020 20:11:39 +0000
(21:11 +0100)
committer
Ximin Luo
<infinity0@debian.org>
Thu, 6 Aug 2020 20:11:39 +0000
(21:11 +0100)
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
patch
|
blob
|
history
diff --git
a/src/librustc_codegen_llvm/llvm_util.rs
b/src/librustc_codegen_llvm/llvm_util.rs
index 67a2251e8593ebb8ff211a0f0c315f1e18ce0424..512fd6d3826540d48d4dd6ef10dd1743abaed9a3 100644
(file)
--- 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);
}