summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-30 23:06:57 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-01-30 23:06:57 +0100
commite956946c750789849a5954a85f061a152e642b25 (patch)
tree7d857e39ba5aec8a4a3b2753a092a1218f8bf883
parente6ce7c07dd1580c3200887fed1f3ee8626b82217 (diff)
downloadclang-e956946c750789849a5954a85f061a152e642b25.tar.gz
clang-e956946c750789849a5954a85f061a152e642b25.tar.bz2
clang-e956946c750789849a5954a85f061a152e642b25.tar.xz
[Embtk]: MIPS: give ability to pass -mabi=32 for abi o32 as allowed by GCC
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--lib/Driver/Tools.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 1f7fb7d4c6..b8f2b3733b 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -899,6 +899,10 @@ static void getMipsCPUAndABI(const ArgList &Args,
if (Arg *A = Args.getLastArg(options::OPT_mabi_EQ))
ABIName = A->getValue();
+ // GCC allows -mabi=32 as -mabi=o32
+ if (ABIName.equals("32"))
+ ABIName = "o32";
+
// Setup default CPU and ABI names.
if (CPUName.empty() && ABIName.empty()) {
switch (TC.getTriple().getArch()) {