aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Phillips <mitchp@google.com>2020-06-30 18:23:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-30 18:23:02 +0000
commit13b85a47924d24cfc82830b753333a9c1d3f6fb8 (patch)
tree2c532b8ce35948e7759fd3715936fcb7654a7469
parentc4422106a7cf4731e27d664646bc0d57ad3f37fa (diff)
parentb1c574fd13bf6942399c62ffd906c3c6042c8e14 (diff)
downloadsoong-13b85a47924d24cfc82830b753333a9c1d3f6fb8.tar.gz
Merge "[HWASan] Disable GlobalISel/FastISel w/ HWASan." into rvc-dev
-rw-r--r--cc/sanitize.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 371f27089..463a02ac2 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -48,6 +48,10 @@ var (
// higher number of "optimized out" stack variables.
// b/112437883.
"-mllvm", "-instcombine-lower-dbg-declare=0",
+ // TODO(b/159343917): HWASan and GlobalISel don't play nicely, and
+ // GlobalISel is the default at -O0 on aarch64.
+ "-mllvm", "--aarch64-enable-global-isel-at-O=-1",
+ "-mllvm", "-fast-isel=false",
}
cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",