forked from OSchip/llvm-project
[Driver] Remove an unneeded multiarch library path which ends with ../../..
Neither vanilla nor Debian GCC has the patch, which usually duplicates $sysroot/usr/lib.
This commit is contained in:
parent
5692fc38e0
commit
19e45696f5
|
@ -2872,11 +2872,6 @@ void Generic_GCC::AddMultiarchPaths(const Driver &D,
|
|||
addPathIfExists(
|
||||
D, LibPath + "/../" + GCCTriple.str() + "/lib" + Multilib.osSuffix(),
|
||||
Paths);
|
||||
|
||||
// See comments above on the multilib variant for details of why this is
|
||||
// only included from within the sysroot.
|
||||
if (StringRef(LibPath).startswith(SysRoot))
|
||||
addPathIfExists(D, LibPath, Paths);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,5 @@
|
|||
// CHECK-LD-32: "{{.*}}/usr/lib/gcc/i386-unknown-linux/4.6.0{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../../../i386-unknown-linux/lib"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
// CHECK-SAME: "{{[^"]*}}/usr/lib/gcc/x86_64-linux-gnu/4.8{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-SAME: "-L[[TOOLCHAIN]]/usr/lib/gcc/x86_64-linux-gnu/4.8"
|
||||
/// On x86_64, there is an extra usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu but we should not test it.
|
||||
// CHECK-SAME: "-L[[TOOLCHAIN]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.."
|
||||
|
||||
/// Test we don't detect GCC installation under -B.
|
||||
// RUN: %clangxx %s -### --sysroot= 2>&1 \
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
// DEBIAN_X86_64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/x86_64-linux-gnu"
|
||||
// DEBIAN_X86_64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
/// /usr/x86_64-linux-gnu does not exist, so there is no /usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/lib.
|
||||
// DEBIAN_X86_64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/10/../../.."
|
||||
/// -ccc-install-dir is not within sysroot. No bin/../lib.
|
||||
/// $sysroot/lib and $sysroot/usr/lib. Fallback when GCC installation is unavailable.
|
||||
// DEBIAN_X86_64-SAME: {{^}} "-L[[SYSROOT]]/lib"
|
||||
|
@ -44,7 +43,6 @@
|
|||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/i386-linux-gnu"
|
||||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/../lib32"
|
||||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/10"
|
||||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/10/../../.."
|
||||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/lib"
|
||||
// DEBIAN_X86_64_M32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib"
|
||||
|
||||
|
@ -67,7 +65,6 @@
|
|||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/aarch64-linux-gnu"
|
||||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/lib"
|
||||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../.."
|
||||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/lib"
|
||||
// DEBIAN_AARCH64-SAME: {{^}} "-L[[SYSROOT]]/usr/lib"
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// CHECK-LD-32: "{{.*}}/usr/lib/gcc/i386-unknown-linux/4.6.0{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../../../i386-unknown-linux/lib"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -28,7 +27,6 @@
|
|||
// CHECK-LD-64: "{{.*}}/usr/lib/gcc/x86_64-unknown-linux/4.6.0{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-LD-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-LD-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-64: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-64: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-64: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
@ -65,7 +63,6 @@
|
|||
// CHECK-LD-RT: "[[RESDIR]]{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}clang_rt.crtbegin-x86_64.o"
|
||||
// CHECK-LD-RT: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-LD-RT: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-LD-RT: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-RT: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-RT: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-RT: libclang_rt.builtins-x86_64.a"
|
||||
|
@ -89,7 +86,6 @@
|
|||
// CHECK-LD-RT-I686: "[[RESDIR]]{{/|\\\\}}lib{{/|\\\\}}linux{{/|\\\\}}clang_rt.crtbegin-i386.o"
|
||||
// CHECK-LD-RT-I686: "-L[[SYSROOT]]/usr/lib/gcc/i686-unknown-linux/4.6.0"
|
||||
// CHECK-LD-RT-I686: "-L[[SYSROOT]]/usr/lib/gcc/i686-unknown-linux/4.6.0/../../../../i686-unknown-linux/lib"
|
||||
// CHECK-LD-RT-I686: "-L[[SYSROOT]]/usr/lib/gcc/i686-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-RT-I686: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-RT-I686: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-RT-I686: libclang_rt.builtins-i386.a"
|
||||
|
@ -125,7 +121,6 @@
|
|||
// CHECK-LD-GCC: "{{.*}}/usr/lib/gcc/x86_64-unknown-linux/4.6.0{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-GCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-LD-GCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-LD-GCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-GCC: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-GCC: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-GCC: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
@ -146,7 +141,6 @@
|
|||
// CHECK-LD-64-STATIC-LIBGCC: "{{.*}}/usr/lib/gcc/x86_64-unknown-linux/4.6.0{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-64-STATIC-LIBGCC: "-lgcc" "-lgcc_eh"
|
||||
|
@ -321,7 +315,6 @@
|
|||
// CHECK-LD-64-STATIC: "{{.*}}/usr/lib/gcc/x86_64-unknown-linux/4.6.0{{/|\\\\}}crtbeginT.o"
|
||||
// CHECK-LD-64-STATIC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-LD-64-STATIC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-LD-64-STATIC: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-LD-64-STATIC: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-64-STATIC: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-64-STATIC: "--start-group" "-lgcc" "-lgcc_eh" "-lc" "--end-group"
|
||||
|
@ -347,7 +340,6 @@
|
|||
// CHECK-32-TO-32: "-L[[SYSROOT]]/lib/../lib32"
|
||||
// CHECK-32-TO-32: "-L[[SYSROOT]]/usr/lib/../lib32"
|
||||
// CHECK-32-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../../../i386-unknown-linux/lib"
|
||||
// CHECK-32-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-32-TO-32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-32-TO-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -365,7 +357,6 @@
|
|||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0"
|
||||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../../../i386-unknown-linux/lib"
|
||||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/i386-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-32-TO-64: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -382,7 +373,6 @@
|
|||
// CHECK-64-TO-64: "-L[[SYSROOT]]/lib/../lib64"
|
||||
// CHECK-64-TO-64: "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
// CHECK-64-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-64-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-64-TO-64: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-64-TO-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -400,7 +390,6 @@
|
|||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib/../lib32"
|
||||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-64-TO-32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -418,7 +407,6 @@
|
|||
// CHECK-X32: "-L[[SYSROOT]]/usr/lib/../libx32"
|
||||
// CHECK-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-X32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-X32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -436,7 +424,6 @@
|
|||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/usr/lib/../libx32"
|
||||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-64-TO-X32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -454,7 +441,6 @@
|
|||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/usr/lib/../libx32"
|
||||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-32-TO-X32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -471,7 +457,6 @@
|
|||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/lib/../lib64"
|
||||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-X32-TO-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -489,7 +474,6 @@
|
|||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/usr/lib/../lib32"
|
||||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0"
|
||||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../../../x86_64-unknown-linux/lib"
|
||||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux/4.6.0/../../.."
|
||||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-X32-TO-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -578,7 +562,6 @@
|
|||
// CHECK-UBUNTU-12-04-ARM-HF: "-L[[SYSROOT]]/usr/lib/gcc/arm-linux-gnueabihf/4.6.3"
|
||||
// CHECK-UBUNTU-12-04-ARM-HF: "-L[[SYSROOT]]/lib/arm-linux-gnueabihf"
|
||||
// CHECK-UBUNTU-12-04-ARM-HF: "-L[[SYSROOT]]/usr/lib/arm-linux-gnueabihf"
|
||||
// CHECK-UBUNTU-12-04-ARM-HF: "-L[[SYSROOT]]/usr/lib/gcc/arm-linux-gnueabihf/4.6.3/../../.."
|
||||
// CHECK-UBUNTU-12-04-ARM-HF: "{{.*}}/usr/lib/gcc/arm-linux-gnueabihf/4.6.3{{/|\\\\}}crtend.o"
|
||||
// CHECK-UBUNTU-12-04-ARM-HF: "{{.*}}/usr/lib/arm-linux-gnueabihf{{/|\\\\}}crtn.o"
|
||||
//
|
||||
|
@ -633,7 +616,6 @@
|
|||
// CHECK-UBUNTU-14-04-PPC64LE: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64le-linux-gnu/4.8"
|
||||
// CHECK-UBUNTU-14-04-PPC64LE: "-L[[SYSROOT]]/lib/powerpc64le-linux-gnu"
|
||||
// CHECK-UBUNTU-14-04-PPC64LE: "-L[[SYSROOT]]/usr/lib/powerpc64le-linux-gnu"
|
||||
// CHECK-UBUNTU-14-04-PPC64LE: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64le-linux-gnu/4.8/../../.."
|
||||
// CHECK-UBUNTU-14-04-PPC64LE: "{{.*}}/usr/lib/gcc/powerpc64le-linux-gnu/4.8{{/|\\\\}}crtend.o"
|
||||
// CHECK-UBUNTU-14-04-PPC64LE: "{{.*}}/usr/lib/powerpc64le-linux-gnu{{/|\\\\}}crtn.o"
|
||||
//
|
||||
|
@ -653,7 +635,6 @@
|
|||
// CHECK-UBUNTU-14-04-X32-SAME: {{^}} "-L[[SYSROOT]]/lib/../libx32"
|
||||
// CHECK-UBUNTU-14-04-X32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/../libx32"
|
||||
// CHECK-UBUNTU-14-04-X32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8"
|
||||
// CHECK-UBUNTU-14-04-X32-SAME: {{^}} "-L[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.."
|
||||
// CHECK-UBUNTU-14-04-X32: "{{.*}}/usr/lib/gcc/x86_64-linux-gnu/4.8/x32{{/|\\\\}}crtend.o"
|
||||
// CHECK-UBUNTU-14-04-X32: "{{.*}}/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../libx32{{/|\\\\}}crtn.o"
|
||||
//
|
||||
|
@ -719,7 +700,6 @@
|
|||
// CHECK-UBUNTU-12-04-ARM: "-L[[SYSROOT]]/usr/lib/gcc/arm-linux-gnueabi/4.6.1"
|
||||
// CHECK-UBUNTU-12-04-ARM: "-L[[SYSROOT]]/lib/arm-linux-gnueabi"
|
||||
// CHECK-UBUNTU-12-04-ARM: "-L[[SYSROOT]]/usr/lib/arm-linux-gnueabi"
|
||||
// CHECK-UBUNTU-12-04-ARM: "-L[[SYSROOT]]/usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../.."
|
||||
// CHECK-UBUNTU-12-04-ARM: "{{.*}}/usr/lib/gcc/arm-linux-gnueabi/4.6.1{{/|\\\\}}crtend.o"
|
||||
// CHECK-UBUNTU-12-04-ARM: "{{.*}}/usr/lib/arm-linux-gnueabi{{/|\\\\}}crtn.o"
|
||||
//
|
||||
|
@ -823,13 +803,12 @@
|
|||
// RUN: --sysroot=%S/Inputs/opensuse_tumbleweed_ppc_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-OPENSUSE-TW-PPC %s
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/gcc/powerpc64-suse-linux/9/../../..{{/|\\\\}}crt1.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/gcc/powerpc64-suse-linux/9/../../..{{/|\\\\}}crti.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib{{/|\\\\}}crt1.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/gcc/powerpc64-suse-linux/9{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64-suse-linux/9"
|
||||
// CHECK-OPENSUSE-TW-PPC: "-L[[SYSROOT]]/usr/lib/gcc/powerpc64-suse-linux/9/../../.."
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/gcc/powerpc64-suse-linux/9{{/|\\\\}}crtend.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/gcc/powerpc64-suse-linux/9/../../..{{/|\\\\}}crtn.o"
|
||||
// CHECK-OPENSUSE-TW-PPC: "{{.*}}/usr/lib/crtn.o"
|
||||
//
|
||||
// Check dynamic-linker for different archs
|
||||
// RUN: %clang %s -### -o %t.o 2>&1 \
|
||||
|
@ -1441,7 +1420,6 @@
|
|||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../../../lib"
|
||||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/lib/../lib"
|
||||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/usr/lib/../lib"
|
||||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../.."
|
||||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-DEBIAN-ML-MIPSEL: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -1458,7 +1436,6 @@
|
|||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../../../lib64"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/lib/../lib64"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/usr/lib/../lib64"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../.."
|
||||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -1475,7 +1452,6 @@
|
|||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../../../lib32"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/lib/../lib32"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib/../lib32"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.4/../../.."
|
||||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-DEBIAN-ML-MIPS64EL-N32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
|
@ -1497,7 +1473,6 @@
|
|||
// 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"
|
||||
|
@ -1521,7 +1496,6 @@
|
|||
// 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"
|
||||
|
@ -1547,7 +1521,6 @@
|
|||
// CHECK-FSL-PPC64: "-m" "elf64ppc"
|
||||
// CHECK-FSL-PPC64: "{{.*}}{{/|\\\\}}crt1.o"
|
||||
// CHECK-FSL-PPC64: "{{.*}}{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-FSL-PPC64: "-L[[SYSROOT]]/usr/lib64/powerpc64-fsl-linux/4.6.2/../.."
|
||||
//
|
||||
// Check that crtfastmath.o is linked with -ffast-math and with -Ofast.
|
||||
// RUN: %clang --target=x86_64-unknown-linux -### %s \
|
||||
|
@ -1812,7 +1785,6 @@
|
|||
// CHECK-LD-GENTOO: "{{.*}}/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-GENTOO: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3"
|
||||
// CHECK-LD-GENTOO: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/lib"
|
||||
// CHECK-LD-GENTOO: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../.."
|
||||
// CHECK-LD-GENTOO: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// CHECK-LD-GENTOO: "-lc"
|
||||
// CHECK-LD-GENTOO: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
@ -1829,7 +1801,6 @@
|
|||
// CHECK-LD-GENTOO-32: "{{.*}}/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/32{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-GENTOO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/32"
|
||||
// CHECK-LD-GENTOO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/lib"
|
||||
// CHECK-LD-GENTOO-32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../.."
|
||||
// CHECK-LD-GENTOO-32: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// CHECK-LD-GENTOO-32: "-lc"
|
||||
// CHECK-LD-GENTOO-32: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
@ -1846,7 +1817,6 @@
|
|||
// CHECK-LD-GENTOO-X32: "{{.*}}/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/x32{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-GENTOO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/x32"
|
||||
// CHECK-LD-GENTOO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/lib"
|
||||
// CHECK-LD-GENTOO-X32: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../.."
|
||||
// CHECK-LD-GENTOO-X32: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// CHECK-LD-GENTOO-X32: "-lc"
|
||||
// CHECK-LD-GENTOO-X32: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
@ -1875,7 +1845,6 @@
|
|||
// CHECK-LD-AMI: "{{.*}}/usr/lib/gcc/x86_64-amazon-linux/7{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-LD-AMI: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-amazon-linux/7"
|
||||
// CHECK-LD-AMI: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-amazon-linux/7/../../../../lib64"
|
||||
// CHECK-LD-AMI: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-amazon-linux/7/../../.."
|
||||
// CHECK-LD-AMI: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-LD-AMI: "-L[[SYSROOT]]/usr/lib"
|
||||
// CHECK-LD-AMI: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
// CHECK-DEBIAN-MIPS: "{{.*}}/usr/lib/gcc/mips-linux-gnu/4.7{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7"
|
||||
// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/mips-linux-gnu"
|
||||
// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7/../../.."
|
||||
// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib"
|
||||
|
||||
|
@ -23,6 +22,5 @@
|
|||
// CHECK-DEBIAN-MIPSEL: "{{.*}}/usr/lib/gcc/mipsel-linux-gnu/4.7{{/|\\\\}}crtbegin.o"
|
||||
// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7"
|
||||
// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/mipsel-linux-gnu"
|
||||
// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7/../../.."
|
||||
// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/lib"
|
||||
// CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib"
|
||||
|
|
Loading…
Reference in New Issue