1From 09fa56b93667a0784f41d3664f8aa7a790114341 Mon Sep 17 00:00:00 2001
2From: Andrew Hsieh <andrewhsieh@google.com>
3Date: Tue, 4 Nov 2014 10:58:11 +0800
4Subject: [PATCH 7/7] Add fix-cortex-a53-835769
5
6--fix-cortex-a53-835769 is passed from gcc4.9 by default unless
7user specify -mno-fix-cortex-a53-835769.
8
9Add but ignore it for now, otherwise lots of existing testing
10not affected by A53 errata 835769 break
11
12Change-Id: Ie96e5b4bf4a64d0811c67949b67f7c06ec559da1
13---
14 tools/mcld/lib/OutputFormatOptions.cpp | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/tools/mcld/lib/OutputFormatOptions.cpp b/tools/mcld/lib/OutputFormatOptions.cpp
18index 821a808..a77b4a8 100644
19--- a/tools/mcld/lib/OutputFormatOptions.cpp
20+++ b/tools/mcld/lib/OutputFormatOptions.cpp
21@@ -175,6 +175,12 @@ llvm::cl::opt<bool> ArgNoWarnMismatch(
22     llvm::cl::ZeroOrMore,
23     llvm::cl::init(false));
24
25+llvm::cl::opt<bool> ArgFixCortexA53Errata835769(
26+    "fix-cortex-a53-835769",
27+    llvm::cl::desc("Fix AArch64 A53 Errata 835769."),
28+    llvm::cl::ZeroOrMore,
29+    llvm::cl::init(false));
30+
31 // Not supported yet {
32 llvm::cl::opt<bool> ArgExportDynamic(
33     "export-dynamic",
34--
352.2.0.rc0.207.ga3a616c
36
37