aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorNikola Veljkovic <Nikola.Veljkovic@imgtec.com>2016-08-22 20:03:39 +0200
committerPirama Arumuga Nainar <pirama@google.com>2016-09-06 21:38:24 +0000
commit3d6a38d60154f09933c6c32cb09e1f2fa142812d (patch)
treedac711649099f9e8cca1daaa3c818c2cf4b697ad /cc
parent8be0e0ffde5cd2c516c000604d1e66a3f8b22965 (diff)
downloadbuild_soong-3d6a38d60154f09933c6c32cb09e1f2fa142812d.tar.gz
build_soong-3d6a38d60154f09933c6c32cb09e1f2fa142812d.tar.bz2
build_soong-3d6a38d60154f09933c6c32cb09e1f2fa142812d.zip
[mips] Disable compact branch generation
Bug: http://b/31317834 Clang generates invalid beqc compact branch instruction. Disable compact branch generation until clang is updated to include r278824, which fixes the issue. Error: /tmp/backtrace_test-6a4a4f.s:6603: Error: invalid operands `beqc $zero,$1,$BB31_ 6' clang++.real: error: assembler command failed with exit code 1 (use -v to see in vocation) Test for mips and mips64: cd system/core/libbacktrace && mma Change-Id: I0b0f189e126621dbadb317ba711993e45004348d
Diffstat (limited to 'cc')
-rw-r--r--cc/config/mips64_device.go3
-rw-r--r--cc/config/mips_device.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/cc/config/mips64_device.go b/cc/config/mips64_device.go
index e414c7e1..4e8bf1e7 100644
--- a/cc/config/mips64_device.go
+++ b/cc/config/mips64_device.go
@@ -78,6 +78,9 @@ var (
"mips64r6": []string{
"-mips64r6",
"-msynci",
+
+ // revert once clang picks up r278824
+ "-mcompact-branches=never",
},
}
)
diff --git a/cc/config/mips_device.go b/cc/config/mips_device.go
index e0ae3c78..deef10f5 100644
--- a/cc/config/mips_device.go
+++ b/cc/config/mips_device.go
@@ -114,6 +114,9 @@ var (
"-mfp64",
"-mno-odd-spreg",
"-msynci",
+
+ // revert once clang picks up r278824
+ "-mcompact-branches=never",
},
}
)