<div dir="ltr">This test fails for me on Windows, and you can see the failure here:<div><a href="http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/9035">http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/9035</a><br>
<div><div><br></div><div>Command 74: "D:/src/llvm/build/./bin/clang.EXE" "D:\src\llvm\tools\clang\test\Driver\linux-ld.c" "-###" "-o" "D:\src\llvm\build\tools\clang\test\Driver\Output\linux-ld.c.tmp.o" "--target=mips64-linux-gnu"</div>
<div>Command 74 Result: 0</div><div>Command 74 Output:</div><div><br></div><div><br></div><div>Command 74 Stderr:</div><div><br></div><div><br></div><div>Command 75: "D:/src/llvm/build/./bin\FileCheck.EXE" "--check-prefix=CHECK-MIPS64" "D:\src\llvm\tools\clang\test\Driver\linux-ld.c"</div>
<div>Command 75 Result: 1</div><div>Command 75 Output:</div><div><br></div><div><br></div><div>Command 75 Stderr:</div><div>D:\src\llvm\tools\clang\test\Driver\linux-ld.c:487:18: error: expected string not found in input</div>
<div>// CHECK-MIPS64: "-dynamic-linker" "{{.*}}/lib64/ld.so.1"</div><div>                 ^</div><div><stdin>:6:61: note: scanning from here</div><div> "C:\cygwin\bin\ld.exe" "--eh-frame-hdr" "-m" "elf64btsmip" "-dynamic-linker" "T▒" "-o" "D:\\src\\llvm\\build\\tools\\clang\\test\\Driver\\Output\\linux-ld.c.tmp.o" "crt1.o" "crti.o" "crtbegin.o" "-LD:\\src\\llvm\\build\\bin/../lib" "D:\\src\\tmp\\linux-ld-4de8eb.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "crtend.o" "crtn.o"</div>
<div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 12:00 PM, Simon Atanasyan <span dir="ltr"><<a href="mailto:simon@atanasyan.com" target="_blank">simon@atanasyan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: atanasyan<br>
Date: Tue Jun 24 14:00:12 2014<br>
New Revision: 211619<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=211619&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=211619&view=rev</a><br>
Log:<br>
[Driver][Mips] Support mips64-linux-gnuabi64 / mips64el-linux-gnuabi64 target triples.<br>
<br>
The patch fixes the bug #19869.<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=19869" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=19869</a><br>
<br>
Added:<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o<br>
    cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o<br>
Modified:<br>
    cfe/trunk/lib/Driver/ToolChains.cpp<br>
    cfe/trunk/test/Driver/linux-header-search.cpp<br>
    cfe/trunk/test/Driver/linux-ld.c<br>
<br>
Modified: cfe/trunk/lib/Driver/ToolChains.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=211619&r1=211618&r2=211619&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=211619&r1=211618&r2=211619&view=diff</a><br>

==============================================================================<br>
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)<br>
+++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Jun 24 14:00:12 2014<br>
@@ -1360,11 +1360,13 @@ bool Generic_GCC::GCCInstallationDetecto<br>
<br>
   static const char *const MIPS64LibDirs[] = { "/lib64", "/lib" };<br>
   static const char *const MIPS64Triples[] = { "mips64-linux-gnu",<br>
-                                               "mips-mti-linux-gnu" };<br>
+                                               "mips-mti-linux-gnu",<br>
+                                               "mips64-linux-gnuabi64" };<br>
   static const char *const MIPS64ELLibDirs[] = { "/lib64", "/lib" };<br>
   static const char *const MIPS64ELTriples[] = { "mips64el-linux-gnu",<br>
                                                  "mips-mti-linux-gnu",<br>
-                                                 "mips64el-linux-android" };<br>
+                                                 "mips64el-linux-android",<br>
+                                                 "mips64el-linux-gnuabi64" };<br>
<br>
   static const char *const PPCLibDirs[] = { "/lib32", "/lib" };<br>
   static const char *const PPCTriples[] = {<br>
@@ -1916,6 +1918,18 @@ static bool findMIPSMultilibs(const llvm<br>
     }<br>
   }<br>
<br>
+  {<br>
+    // Fallback to the regular toolchain-tree structure.<br>
+    Multilib Default;<br>
+    Result.Multilibs.push_back(Default);<br>
+    Result.Multilibs.FilterOut(NonExistent);<br>
+<br>
+    if (Result.Multilibs.select(Flags, Result.SelectedMultilib)) {<br>
+      Result.BiarchSibling = Multilib();<br>
+      return true;<br>
+    }<br>
+  }<br>
+<br>
   return false;<br>
 }<br>
<br>
@@ -2910,6 +2924,18 @@ static std::string getMultiarchTriple(co<br>
     if (llvm::sys::fs::exists(SysRoot + "/lib/mipsel-linux-gnu"))<br>
       return "mipsel-linux-gnu";<br>
     return TargetTriple.str();<br>
+  case llvm::Triple::mips64:<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnu"))<br>
+      return "mips64-linux-gnu";<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnuabi64"))<br>
+      return "mips64-linux-gnuabi64";<br>
+    return TargetTriple.str();<br>
+  case llvm::Triple::mips64el:<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnu"))<br>
+      return "mips64el-linux-gnu";<br>
+    if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnuabi64"))<br>
+      return "mips64el-linux-gnuabi64";<br>
+    return TargetTriple.str();<br>
   case llvm::Triple::ppc:<br>
     if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))<br>
       return "powerpc-linux-gnuspe";<br>
@@ -3258,6 +3284,14 @@ void Linux::AddClangSystemIncludeArgs(co<br>
   const StringRef MIPSELMultiarchIncludeDirs[] = {<br>
     "/usr/include/mipsel-linux-gnu"<br>
   };<br>
+  const StringRef MIPS64MultiarchIncludeDirs[] = {<br>
+    "/usr/include/mips64-linux-gnu",<br>
+    "/usr/include/mips64-linux-gnuabi64"<br>
+  };<br>
+  const StringRef MIPS64ELMultiarchIncludeDirs[] = {<br>
+    "/usr/include/mips64el-linux-gnu",<br>
+    "/usr/include/mips64el-linux-gnuabi64"<br>
+  };<br>
   const StringRef PPCMultiarchIncludeDirs[] = {<br>
     "/usr/include/powerpc-linux-gnu"<br>
   };<br>
@@ -3286,6 +3320,10 @@ void Linux::AddClangSystemIncludeArgs(co<br>
     MultiarchIncludeDirs = MIPSMultiarchIncludeDirs;<br>
   } else if (getTriple().getArch() == llvm::Triple::mipsel) {<br>
     MultiarchIncludeDirs = MIPSELMultiarchIncludeDirs;<br>
+  } else if (getTriple().getArch() == llvm::Triple::mips64) {<br>
+    MultiarchIncludeDirs = MIPS64MultiarchIncludeDirs;<br>
+  } else if (getTriple().getArch() == llvm::Triple::mips64el) {<br>
+    MultiarchIncludeDirs = MIPS64ELMultiarchIncludeDirs;<br>
   } else if (getTriple().getArch() == llvm::Triple::ppc) {<br>
     MultiarchIncludeDirs = PPCMultiarchIncludeDirs;<br>
   } else if (getTriple().getArch() == llvm::Triple::ppc64) {<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/backward/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/backward/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/mips64-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/mips64-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c%2B%2B/4.9/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Added: cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o?rev=211619&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o?rev=211619&view=auto</a><br>

==============================================================================<br>
    (empty)<br>
<br>
Modified: cfe/trunk/test/Driver/linux-header-search.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-header-search.cpp?rev=211619&r1=211618&r2=211619&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-header-search.cpp?rev=211619&r1=211618&r2=211619&view=diff</a><br>

==============================================================================<br>
--- cfe/trunk/test/Driver/linux-header-search.cpp (original)<br>
+++ cfe/trunk/test/Driver/linux-header-search.cpp Tue Jun 24 14:00:12 2014<br>
@@ -197,3 +197,35 @@<br>
 // CHECK-GENTOO-4-6-4: "-internal-isystem" "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"<br>
 // CHECK-GENTOO-4-6-4: "-internal-externc-isystem" "[[SYSROOT]]/include"<br>
 // CHECK-GENTOO-4-6-4: "-internal-externc-isystem" "[[SYSROOT]]/usr/include"<br>
+//<br>
+// Check header search on Debian 6 / MIPS64<br>
+// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \<br>
+// RUN:     -target mips64-unknown-linux-gnuabi64 \<br>
+// RUN:     --sysroot=%S/Inputs/debian_6_mips64_tree \<br>
+// RUN:   | FileCheck --check-prefix=CHECK-MIPS64-GNUABI %s<br>
+// CHECK-MIPS64-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1"<br>
+// CHECK-MIPS64-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]"<br>
+// CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9"<br>
+// CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64-linux-gnuabi64"<br>
+// CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward"<br>
+// CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/local/include"<br>
+// CHECK-MIPS64-GNUABI: "-internal-isystem" "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"<br>
+// CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/mips64-linux-gnuabi64"<br>
+// CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include"<br>
+// CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include"<br>
+//<br>
+// Check header search on Debian 6 / MIPS64<br>
+// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \<br>
+// RUN:     -target mips64el-unknown-linux-gnuabi64 \<br>
+// RUN:     --sysroot=%S/Inputs/debian_6_mips64_tree \<br>
+// RUN:   | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABI %s<br>
+// CHECK-MIPS64EL-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1"<br>
+// CHECK-MIPS64EL-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64el-linux-gnuabi64"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/local/include"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-isystem" "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/mips64el-linux-gnuabi64"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include"<br>
+// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include"<br>
<br>
Modified: cfe/trunk/test/Driver/linux-ld.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-ld.c?rev=211619&r1=211618&r2=211619&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-ld.c?rev=211619&r1=211618&r2=211619&view=diff</a><br>

==============================================================================<br>
--- cfe/trunk/test/Driver/linux-ld.c (original)<br>
+++ cfe/trunk/test/Driver/linux-ld.c Tue Jun 24 14:00:12 2014<br>
@@ -1014,6 +1014,44 @@<br>
 // CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/lib"<br>
 // CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib"<br>
 //<br>
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \<br>
+// RUN:     --target=mips64-linux-gnuabi64 -mabi=n64 \<br>
+// RUN:     --sysroot=%S/Inputs/debian_6_mips64_tree \<br>
+// RUN:   | FileCheck --check-prefix=CHECK-DEBIAN-ML-MIPS64-GNUABI %s<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crt1.o"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crti.o"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9{{/|\\\\}}crtbegin.o"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/lib/mips64-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib/mips64-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../.."<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/lib"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9{{/|\\\\}}crtend.o"<br>
+// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crtn.o"<br>
+//<br>
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \<br>
+// RUN:     --target=mips64el-linux-gnuabi64 -mabi=n64 \<br>
+// RUN:     --sysroot=%S/Inputs/debian_6_mips64_tree \<br>
+// RUN:   | FileCheck --check-prefix=CHECK-DEBIAN-ML-MIPS64EL-GNUABI %s<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crt1.o"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crti.o"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9{{/|\\\\}}crtbegin.o"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/lib/mips64el-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib/mips64el-linux-gnuabi64"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../.."<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/lib"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9{{/|\\\\}}crtend.o"<br>
+// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crtn.o"<br>
+//<br>
 // Test linker invocation for Freescale SDK (OpenEmbedded).<br>
 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \<br>
 // RUN:     --target=powerpc-fsl-linux \<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>