r211619 - [Driver][Mips] Support mips64-linux-gnuabi64 / mips64el-linux-gnuabi64 target triples.
Reid Kleckner
rnk at google.com
Tue Jun 24 16:50:13 PDT 2014
This test fails for me on Windows, and you can see the failure here:
http://bb.pgr.jp/builders/ninja-clang-i686-msc17-R/builds/9035
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"
Command 74 Result: 0
Command 74 Output:
Command 74 Stderr:
Command 75: "D:/src/llvm/build/./bin\FileCheck.EXE"
"--check-prefix=CHECK-MIPS64"
"D:\src\llvm\tools\clang\test\Driver\linux-ld.c"
Command 75 Result: 1
Command 75 Output:
Command 75 Stderr:
D:\src\llvm\tools\clang\test\Driver\linux-ld.c:487:18: error: expected
string not found in input
// CHECK-MIPS64: "-dynamic-linker" "{{.*}}/lib64/ld.so.1"
^
<stdin>:6:61: note: scanning from here
"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"
On Tue, Jun 24, 2014 at 12:00 PM, Simon Atanasyan <simon at atanasyan.com>
wrote:
> Author: atanasyan
> Date: Tue Jun 24 14:00:12 2014
> New Revision: 211619
>
> URL: http://llvm.org/viewvc/llvm-project?rev=211619&view=rev
> Log:
> [Driver][Mips] Support mips64-linux-gnuabi64 / mips64el-linux-gnuabi64
> target triples.
>
> The patch fixes the bug #19869.
> http://llvm.org/bugs/show_bug.cgi?id=19869
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/.keep
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/.keep
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/.keep
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o
>
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o
> Modified:
> cfe/trunk/lib/Driver/ToolChains.cpp
> cfe/trunk/test/Driver/linux-header-search.cpp
> cfe/trunk/test/Driver/linux-ld.c
>
> Modified: cfe/trunk/lib/Driver/ToolChains.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=211619&r1=211618&r2=211619&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Driver/ToolChains.cpp (original)
> +++ cfe/trunk/lib/Driver/ToolChains.cpp Tue Jun 24 14:00:12 2014
> @@ -1360,11 +1360,13 @@ bool Generic_GCC::GCCInstallationDetecto
>
> static const char *const MIPS64LibDirs[] = { "/lib64", "/lib" };
> static const char *const MIPS64Triples[] = { "mips64-linux-gnu",
> - "mips-mti-linux-gnu" };
> + "mips-mti-linux-gnu",
> + "mips64-linux-gnuabi64" };
> static const char *const MIPS64ELLibDirs[] = { "/lib64", "/lib" };
> static const char *const MIPS64ELTriples[] = { "mips64el-linux-gnu",
> "mips-mti-linux-gnu",
> - "mips64el-linux-android"
> };
> + "mips64el-linux-android",
> +
> "mips64el-linux-gnuabi64" };
>
> static const char *const PPCLibDirs[] = { "/lib32", "/lib" };
> static const char *const PPCTriples[] = {
> @@ -1916,6 +1918,18 @@ static bool findMIPSMultilibs(const llvm
> }
> }
>
> + {
> + // Fallback to the regular toolchain-tree structure.
> + Multilib Default;
> + Result.Multilibs.push_back(Default);
> + Result.Multilibs.FilterOut(NonExistent);
> +
> + if (Result.Multilibs.select(Flags, Result.SelectedMultilib)) {
> + Result.BiarchSibling = Multilib();
> + return true;
> + }
> + }
> +
> return false;
> }
>
> @@ -2910,6 +2924,18 @@ static std::string getMultiarchTriple(co
> if (llvm::sys::fs::exists(SysRoot + "/lib/mipsel-linux-gnu"))
> return "mipsel-linux-gnu";
> return TargetTriple.str();
> + case llvm::Triple::mips64:
> + if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnu"))
> + return "mips64-linux-gnu";
> + if (llvm::sys::fs::exists(SysRoot + "/lib/mips64-linux-gnuabi64"))
> + return "mips64-linux-gnuabi64";
> + return TargetTriple.str();
> + case llvm::Triple::mips64el:
> + if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnu"))
> + return "mips64el-linux-gnu";
> + if (llvm::sys::fs::exists(SysRoot + "/lib/mips64el-linux-gnuabi64"))
> + return "mips64el-linux-gnuabi64";
> + return TargetTriple.str();
> case llvm::Triple::ppc:
> if (llvm::sys::fs::exists(SysRoot + "/lib/powerpc-linux-gnuspe"))
> return "powerpc-linux-gnuspe";
> @@ -3258,6 +3284,14 @@ void Linux::AddClangSystemIncludeArgs(co
> const StringRef MIPSELMultiarchIncludeDirs[] = {
> "/usr/include/mipsel-linux-gnu"
> };
> + const StringRef MIPS64MultiarchIncludeDirs[] = {
> + "/usr/include/mips64-linux-gnu",
> + "/usr/include/mips64-linux-gnuabi64"
> + };
> + const StringRef MIPS64ELMultiarchIncludeDirs[] = {
> + "/usr/include/mips64el-linux-gnu",
> + "/usr/include/mips64el-linux-gnuabi64"
> + };
> const StringRef PPCMultiarchIncludeDirs[] = {
> "/usr/include/powerpc-linux-gnu"
> };
> @@ -3286,6 +3320,10 @@ void Linux::AddClangSystemIncludeArgs(co
> MultiarchIncludeDirs = MIPSMultiarchIncludeDirs;
> } else if (getTriple().getArch() == llvm::Triple::mipsel) {
> MultiarchIncludeDirs = MIPSELMultiarchIncludeDirs;
> + } else if (getTriple().getArch() == llvm::Triple::mips64) {
> + MultiarchIncludeDirs = MIPS64MultiarchIncludeDirs;
> + } else if (getTriple().getArch() == llvm::Triple::mips64el) {
> + MultiarchIncludeDirs = MIPS64ELMultiarchIncludeDirs;
> } else if (getTriple().getArch() == llvm::Triple::ppc) {
> MultiarchIncludeDirs = PPCMultiarchIncludeDirs;
> } else if (getTriple().getArch() == llvm::Triple::ppc64) {
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64-linux-gnuabi64/.keep?rev=211619&view=auto
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/lib/mips64el-linux-gnuabi64/.keep?rev=211619&view=auto
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/backward/.keep
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64-linux-gnuabi64/.keep
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/c++/4.9/mips64el-linux-gnuabi64/.keep
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64-linux-gnuabi64/.keep
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/include/mips64el-linux-gnuabi64/.keep
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtbegin.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64-linux-gnuabi64/4.9/crtend.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtbegin.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/crtend.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crt1.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crti.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64-linux-gnuabi64/crtn.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crt1.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crti.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Added:
> cfe/trunk/test/Driver/Inputs/debian_6_mips64_tree/usr/lib/mips64el-linux-gnuabi64/crtn.o
> URL:
> 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
>
> ==============================================================================
> (empty)
>
> Modified: cfe/trunk/test/Driver/linux-header-search.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-header-search.cpp?rev=211619&r1=211618&r2=211619&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Driver/linux-header-search.cpp (original)
> +++ cfe/trunk/test/Driver/linux-header-search.cpp Tue Jun 24 14:00:12 2014
> @@ -197,3 +197,35 @@
> // CHECK-GENTOO-4-6-4: "-internal-isystem"
> "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"
> // CHECK-GENTOO-4-6-4: "-internal-externc-isystem" "[[SYSROOT]]/include"
> // CHECK-GENTOO-4-6-4: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> +//
> +// Check header search on Debian 6 / MIPS64
> +// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
> +// RUN: -target mips64-unknown-linux-gnuabi64 \
> +// RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-MIPS64-GNUABI %s
> +// CHECK-MIPS64-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
> +// CHECK-MIPS64-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]"
> +// CHECK-MIPS64-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9"
> +// CHECK-MIPS64-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64-linux-gnuabi64"
> +// CHECK-MIPS64-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward"
> +// CHECK-MIPS64-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/local/include"
> +// CHECK-MIPS64-GNUABI: "-internal-isystem"
> "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"
> +// CHECK-MIPS64-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/mips64-linux-gnuabi64"
> +// CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include"
> +// CHECK-MIPS64-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
> +//
> +// Check header search on Debian 6 / MIPS64
> +// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
> +// RUN: -target mips64el-unknown-linux-gnuabi64 \
> +// RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABI %s
> +// CHECK-MIPS64EL-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
> +// CHECK-MIPS64EL-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]"
> +// CHECK-MIPS64EL-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9"
> +// CHECK-MIPS64EL-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64el-linux-gnuabi64"
> +// CHECK-MIPS64EL-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward"
> +// CHECK-MIPS64EL-GNUABI: "-internal-isystem"
> "[[SYSROOT]]/usr/local/include"
> +// CHECK-MIPS64EL-GNUABI: "-internal-isystem"
> "{{.*}}{{/|\\\\}}lib{{(64|32)?}}{{/|\\\\}}clang{{/|\\\\}}{{[0-9]\.[0-9]\.[0-9]}}{{/|\\\\}}include"
> +// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include/mips64el-linux-gnuabi64"
> +// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/include"
> +// CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem"
> "[[SYSROOT]]/usr/include"
>
> Modified: cfe/trunk/test/Driver/linux-ld.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-ld.c?rev=211619&r1=211618&r2=211619&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/Driver/linux-ld.c (original)
> +++ cfe/trunk/test/Driver/linux-ld.c Tue Jun 24 14:00:12 2014
> @@ -1014,6 +1014,44 @@
> // CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/lib"
> // CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib"
> //
> +// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> +// RUN: --target=mips64-linux-gnuabi64 -mabi=n64 \
> +// RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-ML-MIPS64-GNUABI %s
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI: "{{.*}}ld{{(.exe)?}}"
> "--sysroot=[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crt1.o"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crti.o"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9{{/|\\\\}}crtbegin.o"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/lib/mips64-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/usr/lib/mips64-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../.."
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/lib"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI: "-L[[SYSROOT]]/usr/lib"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9{{/|\\\\}}crtend.o"
> +// CHECK-DEBIAN-ML-MIPS64-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../mips64-linux-gnuabi64{{/|\\\\}}crtn.o"
> +//
> +// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> +// RUN: --target=mips64el-linux-gnuabi64 -mabi=n64 \
> +// RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \
> +// RUN: | FileCheck --check-prefix=CHECK-DEBIAN-ML-MIPS64EL-GNUABI %s
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "{{.*}}ld{{(.exe)?}}"
> "--sysroot=[[SYSROOT:[^"]+]]"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crt1.o"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crti.o"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9{{/|\\\\}}crtbegin.o"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/lib/mips64el-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/usr/lib/mips64el-linux-gnuabi64"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "-L[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../.."
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/lib"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI: "-L[[SYSROOT]]/usr/lib"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9{{/|\\\\}}crtend.o"
> +// CHECK-DEBIAN-ML-MIPS64EL-GNUABI:
> "{{.*}}/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../mips64el-linux-gnuabi64{{/|\\\\}}crtn.o"
> +//
> // Test linker invocation for Freescale SDK (OpenEmbedded).
> // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
> // RUN: --target=powerpc-fsl-linux \
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140624/27ae66c8/attachment.html>
More information about the cfe-commits
mailing list