]> granicus.if.org Git - clang/commitdiff
[mips] Enable IAS by default for Android 64-bit MIPS target (N64)
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 26 Jun 2017 09:58:01 +0000 (09:58 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Mon, 26 Jun 2017 09:58:01 +0000 (09:58 +0000)
IAS is already used for MIPS64 in majority of Android projects.
Android MIPS64 uses N64 ABI. Set IAS as a default now.

Differential Revision: https://reviews.llvm.org/D34514

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306280 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Gnu.cpp

index c9d15ea00d8e6733acf86478a234c7354b41782c..bca5d3a3f28b867229d9ff9e42edbc5d718327bb 100644 (file)
@@ -2338,9 +2338,11 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
     return true;
   case llvm::Triple::mips64:
   case llvm::Triple::mips64el:
-    // Enabled for Debian mips64/mips64el only. Other targets are unable to
-    // distinguish N32 from N64.
-    if (getTriple().getEnvironment() == llvm::Triple::GNUABI64)
+    // Enabled for Debian and Android mips64/mipsel, as they can precisely
+    // identify the ABI in use (Debian) or only use N64 for MIPS64 (Android).
+    // Other targets are unable to distinguish N32 from N64.
+    if (getTriple().getEnvironment() == llvm::Triple::GNUABI64 ||
+        getTriple().isAndroid())
       return true;
     return false;
   default: