aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-10-16 11:26:05 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2015-03-24 11:55:59 -0700
commitd49a78a72afcb3bf89392dbe00685fb247eb8202 (patch)
tree3637485c97a0c51e66ed7d496c7e901788ecc80c
parentca3ddbe0af6cb5bd1b19668f73570ff8aebace4c (diff)
downloadllvm-d49a78a72afcb3bf89392dbe00685fb247eb8202.tar.gz
[ndk][arm64] Set aarch64-fix-cortex-a53-835769 as default for AArch64
See previous CLs for details about Cortex-A53 erratum (835769) Flag aarch64-fix-cortex-a53-835769 is set to 1 or 0 by clang, depending on the presence of -mfix-cortex-a53-835769 or -mno-fix-cortex-a53-835769. If neither is given, this CL changes the default to "true" for aarch64-fix-cortex-a53-835769. It makes sense to have this workaround enabled by default in Android when apps generated by NDK toolchains can potentially run on affected A53. Android platform clang can specify -mno-fix-cortex-a53-835769 to disable this workaround for A53 known to be not affected. This changes also match the behavior in GCC r216079 when it's configured with --enable-fix-cortex-a53-835769, which is the case for NDK toolchains. Change-Id: I56d6c273f79c25d18e2cdd1b61015f35082bbb23
-rw-r--r--lib/Target/AArch64/AArch64TargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64TargetMachine.cpp b/lib/Target/AArch64/AArch64TargetMachine.cpp
index d4f19d2abd8..8f663484f0a 100644
--- a/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -79,7 +79,7 @@ EnableCondOpt("aarch64-condopt",
static cl::opt<bool>
EnableA53Fix835769("aarch64-fix-cortex-a53-835769", cl::Hidden,
cl::desc("Work around Cortex-A53 erratum 835769"),
- cl::init(false));
+ cl::init(true));
static cl::opt<bool>
EnableGEPOpt("aarch64-gep-opt", cl::Hidden,