projects
/
rustc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec56baf
)
Various fixes for Rust on MIPS
author
Dragan Mladjenovic
<dmladjenovic@wavecomp.com>
Sun, 5 Jul 2020 14:06:52 +0000
(15:06 +0100)
committer
Ximin Luo
<infinity0@debian.org>
Sun, 5 Jul 2020 14:06:52 +0000
(15:06 +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 0081a75a4da11b13b558c939a91f8d94b20fc8a8..ba563507914c33ad4f5ea52cad770c20aff7b9cd 100644
(file)
--- a/
src/librustc_codegen_llvm/llvm_util.rs
+++ b/
src/librustc_codegen_llvm/llvm_util.rs
@@
-108,6
+108,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);
}