r179484 - Add driver support for fedora 18 on ARM.
Rafael Espindola
rafael.espindola at gmail.com
Sun Apr 14 03:14:22 PDT 2013
Author: rafael
Date: Sun Apr 14 05:14:21 2013
New Revision: 179484
URL: http://llvm.org/viewvc/llvm-project?rev=179484&view=rev
Log:
Add driver support for fedora 18 on ARM.
Added:
cfe/trunk/test/Driver/Inputs/fedora_18_tree/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/lib/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/lib/.keep
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crt1.o
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crti.o
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crtn.o
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o
cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o
Modified:
cfe/trunk/lib/Driver/ToolChains.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=179484&r1=179483&r2=179484&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sun Apr 14 05:14:21 2013
@@ -1086,6 +1086,7 @@ Generic_GCC::GCCInstallationDetector::GC
};
static const char *const ARMHFTriples[] = {
"arm-linux-gnueabihf",
+ "armv7hl-redhat-linux-gnueabi"
};
static const char *const X86_64LibDirs[] = { "/lib64", "/lib" };
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/lib/.keep
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/lib/.keep?rev=179484&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crt1.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crt1.o?rev=179484&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crti.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crti.o?rev=179484&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crtn.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/crtn.o?rev=179484&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o?rev=179484&view=auto
==============================================================================
(empty)
Added: cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/Inputs/fedora_18_tree/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o?rev=179484&view=auto
==============================================================================
(empty)
Modified: cfe/trunk/test/Driver/linux-ld.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/linux-ld.c?rev=179484&r1=179483&r2=179484&view=diff
==============================================================================
--- cfe/trunk/test/Driver/linux-ld.c (original)
+++ cfe/trunk/test/Driver/linux-ld.c Sun Apr 14 05:14:21 2013
@@ -245,6 +245,22 @@
// 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/gcc/arm-linux-gnueabihf/4.6.3/../../../arm-linux-gnueabihf/crtn.o"
//
+// Check fedora 18 on arm.
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
+// RUN: -target armv7-unknown-linux-gnueabihf \
+// RUN: --sysroot=%S/Inputs/fedora_18_tree \
+// RUN: | FileCheck --check-prefix=CHECK-FEDORA-18-ARM-HF %s
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crt1.o"
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crti.o"
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o"
+// CHECK-FEDORA-18-ARM-HF: "-L[[SYSROOT]]/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2"
+// CHECK-FEDORA-18-ARM-HF: "-L[[SYSROOT]]/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../.."
+// CHECK-FEDORA-18-ARM-HF: "-L[[SYSROOT]]/lib"
+// CHECK-FEDORA-18-ARM-HF: "-L[[SYSROOT]]/usr/lib"
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o"
+// CHECK-FEDORA-18-ARM-HF: "{{.*}}/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crtn.o"
+//
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: -target arm-unknown-linux-gnueabi \
// RUN: --sysroot=%S/Inputs/ubuntu_12.04_LTS_multiarch_tree \
More information about the cfe-commits
mailing list