aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-10-16 11:26:05 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-10-16 11:35:01 +0800
commit0b6ca53fdaa40544ad77e922ec7f6f6757e76df3 (patch)
treecae4137a12833ce90f90bd3c41428fbaaa857bf2
parent22fe6dc6b3fb322907f147382cfdbd8bebe22e66 (diff)
downloadllvm-0b6ca53fdaa40544ad77e922ec7f6f6757e76df3.tar.gz
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 20b23b6ca08..15728ab9580 100644
--- a/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -62,7 +62,7 @@ EnableAtomicTidy("aarch64-atomic-cfg-tidy", cl::Hidden,
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));
extern "C" void LLVMInitializeAArch64Target() {
// Register the target.