forked from OSchip/llvm-project
parent
9d66d9e4b2
commit
9a8d528ddf
|
@ -101,8 +101,6 @@ def ccc_pch_is_pth : Flag<"-ccc-pch-is-pth">, CCCDriverOpt,
|
|||
HelpText<"Use pretokenized headers for precompiled headers">;
|
||||
|
||||
class CCCDebugOpt : Group<ccc_debug_Group>, Flags<[DriverOption, HelpHidden]>;
|
||||
def ccc_host_triple : Separate<"-ccc-host-triple">, CCCDebugOpt,
|
||||
HelpText<"Simulate running on the given target">;
|
||||
def ccc_install_dir : Separate<"-ccc-install-dir">, CCCDebugOpt,
|
||||
HelpText<"Simulate installation in the given directory">;
|
||||
def ccc_print_options : Flag<"-ccc-print-options">, CCCDebugOpt,
|
||||
|
@ -757,11 +755,16 @@ def stdlib_EQ : Joined<"-stdlib=">;
|
|||
def sub__library : JoinedOrSeparate<"-sub_library">;
|
||||
def sub__umbrella : JoinedOrSeparate<"-sub_umbrella">;
|
||||
def s : Flag<"-s">;
|
||||
def target : Separate<"-target">,
|
||||
HelpText<"Generate code for the given target">;
|
||||
// We should deprecate the use of -ccc-host-triple, and then remove.
|
||||
def ccc_host_triple : Flag<"-ccc-host-triple">, Alias<target>;
|
||||
def time : Flag<"-time">,
|
||||
HelpText<"Time individual commands">;
|
||||
def traditional_cpp : Flag<"-traditional-cpp">;
|
||||
def traditional : Flag<"-traditional">;
|
||||
def trigraphs : Flag<"-trigraphs">;
|
||||
def triple : Flag<"-triple">, Alias<target>;
|
||||
def twolevel__namespace__hints : Flag<"-twolevel_namespace_hints">;
|
||||
def twolevel__namespace : Flag<"-twolevel_namespace">;
|
||||
def t : Flag<"-t">;
|
||||
|
|
|
@ -148,7 +148,7 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
|
|||
}
|
||||
}
|
||||
|
||||
// If -ccc-host-triple arch-pc-win32-macho option specified, we're
|
||||
// If -target arch-pc-win32-macho option specified, we're
|
||||
// generating code for Win32 ABI. No need to emit
|
||||
// __ENVIRONMENT_XX_OS_VERSION_MIN_REQUIRED__.
|
||||
if (PlatformName == "win32") {
|
||||
|
|
|
@ -305,7 +305,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
|
|||
}
|
||||
// FIXME: We shouldn't overwrite the default host triple here, but we have
|
||||
// nowhere else to put this currently.
|
||||
if (const Arg *A = Args->getLastArg(options::OPT_ccc_host_triple))
|
||||
if (const Arg *A = Args->getLastArg(options::OPT_target))
|
||||
DefaultTargetTriple = A->getValue(*Args);
|
||||
if (const Arg *A = Args->getLastArg(options::OPT_ccc_install_dir))
|
||||
Dir = InstalledDir = A->getValue(*Args);
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
// CHECK: "-arcmt-migrate" "-arcmt-migrate-directory" "{{[^"]*}}/foo/bar"
|
||||
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -ccc-arcmt-check -ccc-host-triple i386-apple-darwin9 -### %t.o 2> %t.log
|
||||
// RUN: %clang -ccc-arcmt-check -target i386-apple-darwin9 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK %s < %t.log
|
||||
// RUN: %clang -ccc-arcmt-migrate /foo/bar -ccc-host-triple i386-apple-darwin9 -### %t.o 2> %t.log
|
||||
// RUN: %clang -ccc-arcmt-migrate /foo/bar -target i386-apple-darwin9 -### %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK %s < %t.log
|
||||
|
||||
// LINK-NOT: {{ld(.exe)?"}}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: x86-registered-target
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
|
||||
// RUN: %clang -target i386-apple-darwin10 -flto -S -g %s -o - | FileCheck %s
|
||||
int global;
|
||||
int main() {
|
||||
static int localstatic;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// REQUIRES: x86-registered-target
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin -S -o - %s | \
|
||||
// RUN: %clang -target i386-apple-darwin -S -o - %s | \
|
||||
// RUN: FileCheck --check-prefix=DARWIN %s
|
||||
// DARWIN: f0:
|
||||
// DARWIN: pushl %ebp
|
||||
|
@ -9,7 +9,7 @@
|
|||
// DARWIN: pushl %ebp
|
||||
// DARWIN: ret
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux-gnu -S -o - %s | \
|
||||
// RUN: %clang -target i386-pc-linux-gnu -S -o - %s | \
|
||||
// RUN: FileCheck --check-prefix=LINUX %s
|
||||
// LINUX: f0:
|
||||
// LINUX-NOT: pushl %ebp
|
||||
|
@ -18,7 +18,7 @@
|
|||
// LINUX: pushl %ebp
|
||||
// LINUX: ret
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-darwin -S -o - -fomit-frame-pointer %s | \
|
||||
// RUN: %clang -target i386-darwin -S -o - -fomit-frame-pointer %s | \
|
||||
// RUN: FileCheck --check-prefix=OMIT_ALL %s
|
||||
// OMIT_ALL: f0:
|
||||
// OMIT_ALL-NOT: pushl %ebp
|
||||
|
@ -27,7 +27,7 @@
|
|||
// OMIT_ALL-NOT: pushl %ebp
|
||||
// OMIT_ALL: ret
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-darwin -S -o - -momit-leaf-frame-pointer %s | \
|
||||
// RUN: %clang -target i386-darwin -S -o - -momit-leaf-frame-pointer %s | \
|
||||
// RUN: FileCheck --check-prefix=OMIT_LEAF %s
|
||||
// OMIT_LEAF: f0:
|
||||
// OMIT_LEAF-NOT: pushl %ebp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
|
||||
// RUN: %clang -target mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
|
||||
|
||||
typedef long double LD;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
|
||||
// RUN: %clang -target mips64el-unknown-linux -ccc-clang-archs mips64el -O3 -S -mabi=n64 -o - -emit-llvm %s | FileCheck %s
|
||||
|
||||
typedef struct {
|
||||
double d;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -mmmx -ccc-host-triple i386-unknown-unknown -emit-llvm -S %s -o - | FileCheck %s
|
||||
// RUN: %clang -mmmx -target i386-unknown-unknown -emit-llvm -S %s -o - | FileCheck %s
|
||||
// <rdar://problem/9091220>
|
||||
#include <mmintrin.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -mmmx -ccc-host-triple i386-unknown-unknown -emit-llvm -S %s -o - | FileCheck %s
|
||||
// RUN: %clang -mmmx -target i386-unknown-unknown -emit-llvm -S %s -o - | FileCheck %s
|
||||
#include <mmintrin.h>
|
||||
|
||||
void shift(__m64 a, __m64 b, int c) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -o %t.s -mkernel -Xclang -verify %s
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -mkernel -Xclang -verify %s
|
||||
|
||||
// rdar://problem/9143356
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clangxx -ccc-host-triple x86_64-apple-darwin10 %s -flto -S -o - |\
|
||||
// RUN: %clangxx -target x86_64-apple-darwin10 %s -flto -S -o - |\
|
||||
// RUN: FileCheck --check-prefix=CHECK-NO-KEXT %s
|
||||
// RUN: %clangxx -ccc-host-triple x86_64-apple-darwin10 %s -fapple-kext -flto -S -o - |\
|
||||
// RUN: %clangxx -target x86_64-apple-darwin10 %s -fapple-kext -flto -S -o - |\
|
||||
// RUN: FileCheck --check-prefix=CHECK-KEXT %s
|
||||
|
||||
// CHECK-NO-KEXT-NOT: _GLOBAL__D_a
|
||||
|
|
|
@ -16,5 +16,5 @@
|
|||
// RUN: %clang_cc1 -g -triple x86_64-unknown-unknown -emit-llvm -o %t %s
|
||||
|
||||
// <rdar://problem/7181838> clang 1.0 fails to compile Python 2.6
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin9 -### -S %s -mmacosx-version-min=10.4
|
||||
// RUN: %clang -target x86_64-apple-darwin9 -### -S %s -mmacosx-version-min=10.4
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check that we extract -MD from '-Wp,-MD,FOO', which is used by a number of
|
||||
// major projects (e.g., FireFox and the Linux Kernel).
|
||||
|
||||
// RUN: %clang --ccc-host-triple i386-pc-linux-gnu -### \
|
||||
// RUN: %clang --target i386-pc-linux-gnu -### \
|
||||
// RUN: -Wp,-MD,FOO.d -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck < %t %s
|
||||
//
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -m32 -Xarch_i386 -O2 %s -S -### 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -O2 %s -S -### 2> %t.log
|
||||
// RUN: grep ' "-O2" ' %t.log | count 1
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -m64 -Xarch_i386 -O2 %s -S -### 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -m64 -Xarch_i386 -O2 %s -S -### 2> %t.log
|
||||
// RUN: grep ' "-O2" ' %t.log | count 0
|
||||
// RUN: grep "argument unused during compilation: '-Xarch_i386 -O2'" %t.log
|
||||
// RUN: not %clang -ccc-host-triple i386-apple-darwin9 -m32 -Xarch_i386 -o -Xarch_i386 -S %s -S -Xarch_i386 -o 2> %t.log
|
||||
// RUN: not %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -o -Xarch_i386 -S %s -S -Xarch_i386 -o 2> %t.log
|
||||
// RUN: grep "error: invalid Xarch argument: '-Xarch_i386 -o'" %t.log | count 2
|
||||
// RUN: grep "error: invalid Xarch argument: '-Xarch_i386 -S'" %t.log
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check that we extract --no-demangle from '-Xlinker' and '-Wl,', since that
|
||||
// was a collect2 argument.
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### \
|
||||
// RUN: %clang -target i386-apple-darwin9 -### \
|
||||
// RUN: -Xlinker one -Xlinker --no-demangle \
|
||||
// RUN: -Wl,two,--no-demangle,three -Xlinker four %s 2> %t
|
||||
// RUN: FileCheck < %t %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Verify that the analyzer gets the same flags as normal compilation
|
||||
// (at least for a few key ones).
|
||||
|
||||
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 %clang -ccc-host-triple i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log
|
||||
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 %clang -target i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log
|
||||
// RUN: FileCheck --input-file=%t.log %s
|
||||
|
||||
// CHECK: "-analyze"
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
// Check that we transparently fallback to llvm-gcc for i386 kexts, we don't
|
||||
// support the ABI they use (yet).
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK < %t %s
|
||||
|
||||
// CHECK: cc1plus"
|
||||
// CHECK: "-fapple-kext"
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -mkernel -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-MKERNEL < %t %s
|
||||
|
||||
// CHECK-MKERNEL: cc1plus"
|
||||
// CHECK-MKERNEL: "-mkernel"
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -Wno-self-assign -Wc++11-extensions -Wno-microsoft -Wmicrosoft -Wvla \
|
||||
// RUN: -faltivec -mthumb -mcpu=G4 -mlongcall -mno-longcall -msoft-float \
|
||||
// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
|
||||
|
@ -33,7 +33,7 @@
|
|||
// CHECK-UNSUPPORTED: "-mno-longcall"
|
||||
// CHECK-UNSUPPORTED: "-msoft-float"
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -Wconstant-logical-operand -save-temps \
|
||||
// RUN: -fapple-kext -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-UNSUPPORTED2 < %t %s
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 \
|
||||
// RUN: -mkernel -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-X86 < %t %s
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
|||
// CHECK-X86: "-fno-rtti"
|
||||
// CHECK-X86: "-fno-common"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 \
|
||||
// RUN: -arch armv7 -mkernel -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang -ObjC -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x objective-c -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x objective-c++ -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x c -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
||||
// RUN: %clang -x c++ -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
||||
// RUN: %clang -ObjC -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x objective-c -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x objective-c++ -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
|
||||
// RUN: %clang -x c -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
||||
// RUN: %clang -x c++ -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
|
||||
|
||||
// Just to test clang is working.
|
||||
# foo
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: %clang -ccc-host-triple armv7a-unknown-linux-gnueabi -S -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang -target armv7a-unknown-linux-gnueabi -S -emit-llvm %s -o - | FileCheck %s
|
||||
|
||||
// CHECK: target triple = "armv7-unknown-linux-gnueabi"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// FIXME: Disable pending PR4941.
|
||||
// RUX: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s 2> %t &&
|
||||
// RUX: clang -target x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s 2> %t &&
|
||||
// RUX: grep -- "-fno-builtin-strcat" %t &&
|
||||
// RUX: grep -- "-fno-builtin-strcpy" %t &&
|
||||
|
||||
// FIXME: Disable pending PR4941.
|
||||
// RUX: clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t &&
|
||||
// RUX: clang -target x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t &&
|
||||
// RUX: not grep -- "-fno-builtin-strcat" %t &&
|
||||
// RUX: not grep -- "-fno-builtin-strcpy" %t &&
|
||||
|
||||
// RUN: %clang -ccc-no-clang -ccc-host-triple x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t
|
||||
// RUN: %clang -ccc-no-clang -target x86_64-apple-darwin9 -arch arm -### -fsyntax-only %s -fbuiltin-strcat -fbuiltin-strcpy 2> %t
|
||||
// RUN: not grep -- "-fno-builtin-strcat" %t
|
||||
// RUN: not grep -- "-fno-builtin-strcpy" %t
|
||||
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
// Test that different values of -mfpu pick correct ARM FPU target-feature(s).
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-DEFAULT %s
|
||||
// CHECK-DEFAULT-NOT: "-target-feature" "+vfp2"
|
||||
// CHECK-DEFAULT-NOT: "-target-feature" "+vfp3"
|
||||
// CHECK-DEFAULT-NOT: "-target-feature" "+d16"
|
||||
// CHECK-DEFAULT-NOT: "-target-feature" "+neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=fpa %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=fpa %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-FPA %s
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=fpe2 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=fpe2 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-FPA %s
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=fpe3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=fpe3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-FPA %s
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=maverick %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=maverick %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-FPA %s
|
||||
// CHECK-FPA: "-target-feature" "-vfp2"
|
||||
// CHECK-FPA: "-target-feature" "-vfp3"
|
||||
// CHECK-FPA: "-target-feature" "-neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=vfp3-d16 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=vfp3-d16 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=vfpv3-d16 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s
|
||||
// CHECK-VFP3-D16: "-target-feature" "+vfp3"
|
||||
// CHECK-VFP3-D16: "-target-feature" "+d16"
|
||||
// CHECK-VFP3-D16: "-target-feature" "-neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=vfp %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=vfp %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-VFP %s
|
||||
// CHECK-VFP: "-target-feature" "+vfp2"
|
||||
// CHECK-VFP: "-target-feature" "-neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=vfp3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=vfp3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-VFP3 %s
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=vfpv3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3 %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-VFP3 %s
|
||||
// CHECK-VFP3: "-target-feature" "+vfp3"
|
||||
// CHECK-VFP3: "-target-feature" "-neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
|
||||
// CHECK-NEON: "-target-feature" "+neon"
|
||||
|
||||
// RUN: %clang -ccc-host-triple arm-linux-eabi -msoft-float %s -### -o %t.o 2>&1 \
|
||||
// RUN: %clang -target arm-linux-eabi -msoft-float %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-SOFT-FLOAT %s
|
||||
// CHECK-SOFT-FLOAT: "-target-feature" "-neon"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -emit-ast %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases -emit-ast %s 2> %t
|
||||
// RUN: echo 'END' >> %t
|
||||
// RUN: FileCheck -check-prefix EMIT-AST-PHASES -input-file %t %s
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
|||
// EMIT-AST-PHASES: END
|
||||
|
||||
// RUN: touch %t.ast
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -c %t.ast 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases -c %t.ast 2> %t
|
||||
// RUN: echo 'END' >> %t
|
||||
// RUN: FileCheck -check-prefix COMPILE-AST-PHASES -input-file %t %s
|
||||
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
// Basic binding.
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings %s 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t
|
||||
// RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t
|
||||
// RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang %s 2> %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: ".*\.s"' %t
|
||||
// RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t
|
||||
// RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -no-integrated-cpp %s 2> %t
|
||||
// RUN: grep '"gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.i"' %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*\.i"\], output: ".*\.s"' %t
|
||||
// RUN: grep '"gcc::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t
|
||||
// RUN: grep '"gcc::Link", inputs: \[".*\.o"\], output: "a.out"' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -x c-header %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -x c-header %s 2> %t
|
||||
// RUN: grep '"gcc::Precompile", inputs: \[".*bindings.c"\], output: ".*bindings.c.gch' %t
|
||||
|
||||
// Clang control options
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only %s 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: (nothing)' %t
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -fsyntax-only %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang -fsyntax-only %s 2> %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cxx -fsyntax-only -x c++ %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cxx -fsyntax-only -x c++ %s 2> %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: (nothing)' %t
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-clang-cxx -fsyntax-only -x c++ %s 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -ccc-clang-cxx -fsyntax-only -x c++ %s 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: (nothing)' %t
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cpp -fsyntax-only -no-integrated-cpp %s 2> %t
|
||||
// RUN:target -target i386-unknown-unknown -ccc-print-bindings -ccc-no-clang-cpp -fsyntax-only -no-integrated-cpp %s 2> %t
|
||||
// RUN: grep '"gcc::Preprocess", inputs: \[".*bindings.c"\], output: ".*\.i"' %t
|
||||
// RUN: grep '"clang", inputs: \[".*\.i"\], output: (nothing)' %t
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc 2> %t
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc 2> %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs powerpc %s -S -arch ppc 2> %t
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs powerpc %s -S -arch ppc 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "" %s -S 2> %t
|
||||
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "" %s -S 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t
|
||||
// RUN: %clang -ccc-host-triple powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "i386" %s -S 2> %t
|
||||
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings -ccc-clang-archs "i386" %s -S 2> %t
|
||||
// RUN: grep '"gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t
|
||||
|
||||
// Darwin bindings
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -no-integrated-as -ccc-print-bindings %s 2> %t
|
||||
// RUN: %clang -target i386-apple-darwin9 -no-integrated-as -ccc-print-bindings %s 2> %t
|
||||
// RUN: grep '"clang", inputs: \[".*bindings.c"\], output: ".*\.s"' %t
|
||||
// RUN: grep '"darwin::Assemble", inputs: \[".*\.s"\], output: ".*\.o"' %t
|
||||
// RUN: grep '"darwin::Link", inputs: \[".*\.o"\], output: "a.out"' %t
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: rm -f %t.log
|
||||
// RUN: env RC_DEBUG_OPTIONS=1 \
|
||||
// RUN: CC_LOG_DIAGNOSTICS=1 CC_LOG_DIAGNOSTICS_FILE=%t.log \
|
||||
// RUN: %clang -Wfoobar -no-canonical-prefixes -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only %s
|
||||
// RUN: %clang -Wfoobar -no-canonical-prefixes -target x86_64-apple-darwin10 -fsyntax-only %s
|
||||
// RUN: FileCheck %s < %t.log
|
||||
|
||||
int f0() {}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Check that -no-integrated-as works when -ccc-host-triple i386-pc-win32-macho or
|
||||
// -ccc-host-triple x86_64-pc-win32-macho is specified.
|
||||
// Check that -no-integrated-as works when -target i386-pc-win32-macho or
|
||||
// -target x86_64-pc-win32-macho is specified.
|
||||
|
||||
// RUN: %clang -### -c -ccc-host-triple i386-pc-win32-macho -no-integrated-as %s 2> %t1
|
||||
// RUN: %clang -### -c -target i386-pc-win32-macho -no-integrated-as %s 2> %t1
|
||||
// RUN: FileCheck -check-prefix=X86 < %t1 %s
|
||||
// RUN: %clang -### -c -ccc-host-triple x86_64-pc-win32-macho -no-integrated-as %s 2> %t2
|
||||
// RUN: %clang -### -c -target x86_64-pc-win32-macho -no-integrated-as %s 2> %t2
|
||||
// RUN: FileCheck -check-prefix=X86_64 < %t2 %s
|
||||
//
|
||||
// X86: "-cc1"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -no-integrated-as -### %s 2>&1 | \
|
||||
// RUN: FileCheck --check-prefix=CHECK-DARWIN %s
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux-gnu -static -### %s 2>&1 | \
|
||||
// RUN: %clang -target i386-pc-linux-gnu -static -### %s 2>&1 | \
|
||||
// RUN: FileCheck --check-prefix=CHECK-LINUX %s
|
||||
|
||||
// CHECK-DARWIN: -fno-dwarf2-cfi-asm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2> %t.log
|
||||
// RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2> %t.log
|
||||
// RUN: grep '"-triple" "i386-unknown-unknown"' %t.log
|
||||
// RUN: grep '"-S"' %t.log
|
||||
// RUN: grep '"-disable-free"' %t.log
|
||||
|
@ -9,12 +9,12 @@
|
|||
// RUN: grep '"-o" .*clang-translation.*' %t.log
|
||||
// RUN: grep '"-masm-verbose"' %t.log
|
||||
// RUN: grep '"-fvisibility" "hidden"' %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
||||
// RUN: grep '"-target-cpu" "yonah"' %t.log
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
||||
// RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log
|
||||
// RUN: grep '"-target-cpu" "core2"' %t.log
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: -arch armv7
|
||||
// RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s < %t.log
|
||||
// ARMV7_DEFAULT: clang
|
||||
|
@ -24,7 +24,7 @@
|
|||
// ARMV7_DEFAULT-NOT: "-msoft-float"
|
||||
// ARMV7_DEFAULT: "-x" "c"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: -arch armv7 -msoft-float
|
||||
// RUN: FileCheck -check-prefix=ARMV7_SOFTFLOAT %s < %t.log
|
||||
// ARMV7_SOFTFLOAT: clang
|
||||
|
@ -35,7 +35,7 @@
|
|||
// ARMV7_SOFTFLOAT: "-neon"
|
||||
// ARMV7_SOFTFLOAT: "-x" "c"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### -S %s 2> %t.log \
|
||||
// RUN: -arch armv7 -mhard-float
|
||||
// RUN: FileCheck -check-prefix=ARMV7_HARDFLOAT %s < %t.log
|
||||
// ARMV7_HARDFLOAT: clang
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -### -x assembler -c %s \
|
||||
// RUN: %clang -target i386-apple-darwin10 -### -x assembler -c %s \
|
||||
// RUN: -no-integrated-as -static -dynamic 2>%t
|
||||
// RUN: FileCheck -check-prefix=STATIC_AND_DYNAMIC-32 --input-file %t %s
|
||||
//
|
||||
// CHECK-STATIC_AND_DYNAMIC-32: as{{(.exe)?}}" "-arch" "i386" "-force_cpusubtype_ALL" "-static" "-o"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### -x assembler -c %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### -x assembler -c %s \
|
||||
// RUN: -no-integrated-as -static 2>%t
|
||||
// RUN: FileCheck -check-prefix=STATIC-64 --input-file %t %s
|
||||
//
|
||||
// CHECK-STATIC-64: as{{(.exe)?}}" "-arch" "x86_64" "-force_cpusubtype_ALL" "-o"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### \
|
||||
// RUN: -arch armv6 -x assembler -c %s 2>%t
|
||||
// RUN: FileCheck -check-prefix=ARMV6 --input-file %t %s
|
||||
//
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-no-clang -ccc-host-triple i386-apple-darwin10 -m32 -### -MD -g -fast -Q -dA -mkernel -ansi -aFOO -S -o /tmp/OUTPUTNAME -g0 -gfull -O2 -Werror -pedantic -Wmost -w -std=c99 -trigraphs -v -pg -fFOO -undef -Qn --param a=b -fmudflap -coverage -save-temps -nostdinc -I ARG0 -F ARG1 -I ARG2 -P -MF ARG3 -MG -MP -remap -g3 -H -D ARG4 -U ARG5 -A ARG6 -D ARG7 -U ARG8 -A ARG9 -include ARG10 -pthread %s 2> %t.log
|
||||
// RUN: %clang -ccc-no-clang -target i386-apple-darwin10 -m32 -### -MD -g -fast -Q -dA -mkernel -ansi -aFOO -S -o /tmp/OUTPUTNAME -g0 -gfull -O2 -Werror -pedantic -Wmost -w -std=c99 -trigraphs -v -pg -fFOO -undef -Qn --param a=b -fmudflap -coverage -save-temps -nostdinc -I ARG0 -F ARG1 -I ARG2 -P -MF ARG3 -MG -MP -remap -g3 -H -D ARG4 -U ARG5 -A ARG6 -D ARG7 -U ARG8 -A ARG9 -include ARG10 -pthread %s 2> %t.log
|
||||
// RUN: FileCheck %s < %t.log
|
||||
// CHECK: {{ ".*cc1.*" "-E" "-nostdinc" "-v" "-I" "ARG0" "-FARG1" "-I" "ARG2" "-P" "-MD" "[^"]*/OUTPUTNAME.d" "-MF" "ARG3" "-MG" "-MP" "-MQ" "[^"]*/OUTPUTNAME" "-remap" "-dD" "-H" "-D__STATIC__" "-D_REENTRANT" "-D" "ARG4" "-U" "ARG5" "-A" "ARG6" "-D" "ARG7" "-U" "ARG8" "-A" "ARG9" "-include" "ARG10" ".*darwin-cc.c" "-D_MUDFLAP" "-include" "mf-runtime.h" "-m32" "-mkernel" "-mtune=core2" "-mmacosx-version-min=10.6.0" "-ansi" "-std=c99" "-trigraphs" "-Werror" "-pedantic" "-Wmost" "-w" "-fast" "-fno-eliminate-unused-debug-symbols" "-fFOO" "-fmudflap" "-O2" "-undef" "-fpch-preprocess" "-o" ".*darwin-cc.i"}}
|
||||
// CHECK: {{ ".*cc1.*" "-fpreprocessed" ".*darwin-cc.i" "-O3" "-dumpbase" ".*darwin-cc.c" "-dA" "-m32" "-mkernel" "-mtune=core2" "-mmacosx-version-min=10.6.0" "-ansi" "-aFOO" "-auxbase-strip" "[^"]*/OUTPUTNAME" "-g" "-g0" "-g" "-g3" "-O2" "-Werror" "-pedantic" "-Wmost" "-w" "-ansi" "-std=c99" "-trigraphs" "-version" "-p" "-fast" "-fno-eliminate-unused-debug-symbols" "-fFOO" "-fmudflap" "-undef" "-fno-ident" "-o" "[^"]*/OUTPUTNAME" "--param" "a=b" "-fno-builtin" "-fno-merge-constants" "-fprofile-arcs" "-ftest-coverage"}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: env RC_DEBUG_OPTIONS=1 %clang -ccc-host-triple i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s
|
||||
// RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s
|
||||
// <rdar://problem/7256886>
|
||||
// RUN: touch %t.s
|
||||
// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -ccc-host-triple i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
|
||||
// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
|
||||
|
||||
// CHECK: !0 = metadata !{
|
||||
// CHECK: -g -Os
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Check that we run dsymutil properly with multiple -arch options.
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-phases \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \
|
||||
// RUN: -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
|
||||
//
|
||||
|
@ -14,7 +14,7 @@
|
|||
// CHECK-MULTIARCH-ACTIONS: 7: lipo, {5, 6}, image
|
||||
// CHECK-MULTIARCH-ACTIONS: 8: dsymutil, {7}, dSYM
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s
|
||||
//
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
// Check output name derivation.
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -o foo %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
|
||||
//
|
||||
|
@ -33,12 +33,12 @@
|
|||
// Check that we only use dsymutil when needed.
|
||||
//
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -o foo %t.o -g 2> %t
|
||||
// RUN: grep "Dsymutil" %t | count 0
|
||||
|
||||
// Check that we put the .dSYM in the right place.
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -o bar/foo %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-LOCATION < %t %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -flto -S -o - %s | FileCheck %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -flto -S -o - %s | FileCheck %s
|
||||
|
||||
// CHECK: @f0() ssp
|
||||
// CHECK: @__f0_block_invoke
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// Check that ld gets arch_multiple.
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -arch i386 -arch x86_64 %s -### -o foo 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -arch i386 -arch x86_64 %s -### -o foo 2> %t.log
|
||||
// RUN: grep '".*ld.*" .*"-arch_multiple" "-final_output" "foo"' %t.log
|
||||
|
||||
// Make sure we run dsymutil on source input files.
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -g %s -o BAR 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -g %s -o BAR 2> %t.log
|
||||
// RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -g -filelist FOO %s -o BAR 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -g -filelist FOO %s -o BAR 2> %t.log
|
||||
// RUN: grep '".*dsymutil" "-o" "BAR.dSYM" "BAR"' %t.log
|
||||
|
||||
// Check linker changes that came with new linkedit format.
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv6 -miphoneos-version-min=3.0 -bundle %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IPHONE_3_0 %s < %t.log
|
||||
|
||||
// LINK_IPHONE_3_0: {{ld(.exe)?"}}
|
||||
|
@ -28,9 +28,9 @@
|
|||
// LINK_IPHONE_3_0: -lbundle1.o
|
||||
// LINK_IPHONE_3_0: -lSystem
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -dynamiclib %t.o 2>> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -arch armv7 -miphoneos-version-min=3.1 -bundle %t.o 2>> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_IPHONE_3_1 %s < %t.log
|
||||
|
||||
// LINK_IPHONE_3_1: {{ld(.exe)?"}}
|
||||
|
@ -45,26 +45,26 @@
|
|||
// LINK_IPHONE_3_1-NOT: -lbundle1.o
|
||||
// LINK_IPHONE_3_1: -lSystem
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -fpie %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -fpie %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_EXPLICIT_PIE %s < %t.log
|
||||
//
|
||||
// LINK_EXPLICIT_PIE: {{ld(.exe)?"}}
|
||||
// LINK_EXPLICIT_PIE: "-pie"
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -fno-pie %t.o 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -fno-pie %t.o 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_EXPLICIT_NO_PIE %s < %t.log
|
||||
//
|
||||
// LINK_EXPLICIT_NO_PIE: {{ld(.exe)?"}}
|
||||
// LINK_EXPLICIT_NO_PIE: "-no_pie"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=100 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_NEWER_DEMANGLE %s < %t.log
|
||||
//
|
||||
// LINK_NEWER_DEMANGLE: {{ld(.exe)?"}}
|
||||
// LINK_NEWER_DEMANGLE: "-demangle"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=100 -Wl,--no-demangle 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_NEWER_NODEMANGLE %s < %t.log
|
||||
//
|
||||
|
@ -72,7 +72,7 @@
|
|||
// LINK_NEWER_NODEMANGLE-NOT: "-demangle"
|
||||
// LINK_NEWER_NODEMANGLE: "-lSystem"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=95 2> %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_OLDER_NODEMANGLE %s < %t.log
|
||||
//
|
||||
|
@ -80,7 +80,7 @@
|
|||
// LINK_OLDER_NODEMANGLE-NOT: "-demangle"
|
||||
// LINK_OLDER_NODEMANGLE: "-lSystem"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -mlinker-version=117 -flto 2> %t.log
|
||||
// RUN: cat %t.log
|
||||
// RUN: FileCheck -check-prefix=LINK_OBJECT_LTO_PATH %s < %t.log
|
||||
|
@ -88,7 +88,7 @@
|
|||
// LINK_OBJECT_LTO_PATH: {{ld(.exe)?"}}
|
||||
// LINK_OBJECT_LTO_PATH: "-object_path_lto"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -force_load a -force_load b 2> %t.log
|
||||
// RUN: cat %t.log
|
||||
// RUN: FileCheck -check-prefix=FORCE_LOAD %s < %t.log
|
||||
|
@ -96,14 +96,14 @@
|
|||
// FORCE_LOAD: {{ld(.exe)?"}}
|
||||
// FORCE_LOAD: "-force_load" "a" "-force_load" "b"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -lazy_framework Framework 2> %t.log
|
||||
//
|
||||
// RUN: FileCheck -check-prefix=LINK_LAZY_FRAMEWORK %s < %t.log
|
||||
// LINK_LAZY_FRAMEWORK: {{ld(.exe)?"}}
|
||||
// LINK_LAZY_FRAMEWORK: "-lazy_framework" "Framework"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### %t.o \
|
||||
// RUN: -lazy_library Library 2> %t.log
|
||||
//
|
||||
// RUN: FileCheck -check-prefix=LINK_LAZY_LIBRARY %s < %t.log
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// i386
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch i386 -mmacosx-version-min=10.5 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-I386_OSX10_5 < %t %s
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
// CHECK-CHECK-I386_OSX10_5-NOT: -fobjc-dispatch-method
|
||||
// CHECK-CHECK-I386_OSX10_5: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch i386 -mmacosx-version-min=10.6 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-I386_OSX10_6 < %t %s
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
// CHECK-CHECK-I386_OSX10_6-NOT: -fobjc-dispatch-method
|
||||
// CHECK-CHECK-I386_OSX10_6: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch i386 -miphoneos-version-min=3.0 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-I386_IPHONE3_0 < %t %s
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
// x86_64
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch x86_64 -mmacosx-version-min=10.5 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-X86_64_OSX10_5 < %t %s
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
// CHECK-CHECK-X86_64_OSX10_5: -fobjc-dispatch-method=non-legacy
|
||||
// CHECK-CHECK-X86_64_OSX10_5: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch x86_64 -mmacosx-version-min=10.6 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-X86_64_OSX10_6 < %t %s
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
|||
// CHECK-CHECK-X86_64_OSX10_6: -fobjc-dispatch-method=mixed
|
||||
// CHECK-CHECK-X86_64_OSX10_6: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch x86_64 -miphoneos-version-min=3.0 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-X86_64_IPHONE3_0 < %t %s
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
// armv7
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch armv7 -mmacosx-version-min=10.5 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-ARMV7_OSX10_5 < %t %s
|
||||
|
||||
|
@ -69,7 +69,7 @@
|
|||
// CHECK-CHECK-ARMV7_OSX10_5-NOT: -fobjc-dispatch-method
|
||||
// CHECK-CHECK-ARMV7_OSX10_5: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch armv7 -mmacosx-version-min=10.6 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-ARMV7_OSX10_6 < %t %s
|
||||
|
||||
|
@ -78,7 +78,7 @@
|
|||
// CHECK-CHECK-ARMV7_OSX10_6-NOT: -fobjc-dispatch-method
|
||||
// CHECK-CHECK-ARMV7_OSX10_6: darwin-objc-defaults
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch armv7 -miphoneos-version-min=3.0 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-ARMV7_IPHONE3_0 < %t %s
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Check that we warn, but accept, -fobjc-gc for iPhone OS.
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -miphoneos-version-min=3.0 -fobjc-gc -flto -S -o %t %s 2> %t.err
|
||||
// RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -fobjc-gc -flto -S -o %t %s 2> %t.err
|
||||
// RUN: FileCheck --check-prefix=IPHONE_OBJC_GC_LL %s < %t
|
||||
// RUN: FileCheck --check-prefix=IPHONE_OBJC_GC_STDERR %s < %t.err
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Check miscellaneous Objective-C options.
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch x86_64 -fobjc-abi-version=1 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-X86_64_ABI1 < %t %s
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
|||
// CHECK-CHECK-X86_64_ABI1-NOT: -fobjc-dispatch-method
|
||||
// CHECK-CHECK-X86_64_ABI1: darwin-objc-options
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -S -### %s \
|
||||
// RUN: -arch i386 -fobjc-abi-version=2 2> %t
|
||||
// RUN: FileCheck --check-prefix CHECK-I386_ABI2 < %t %s
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Check that we verify debug output properly with multiple -arch options.
|
||||
//
|
||||
// REQUIRES: asserts
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-phases \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-phases \
|
||||
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-ACTIONS < %t %s
|
||||
//
|
||||
|
@ -9,7 +9,7 @@
|
|||
// CHECK-MULTIARCH-ACTIONS: 8: dsymutil, {7}, dSYM
|
||||
// CHECK-MULTIARCH-ACTIONS: 9: verify, {8}, none
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -arch i386 -arch x86_64 %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-MULTIARCH-BINDINGS < %t %s
|
||||
//
|
||||
|
@ -18,7 +18,7 @@
|
|||
|
||||
// Check output name derivation.
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -o foo %s -g 2> %t
|
||||
// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
|
||||
//
|
||||
|
@ -29,6 +29,6 @@
|
|||
// Check that we only verify when needed.
|
||||
//
|
||||
// RUN: touch %t.o
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \
|
||||
// RUN: -verify -o foo %t.o -g 2> %t
|
||||
// RUN: grep "Verify" %t | count 0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.1 \
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -DTEST0 -E %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -DTEST0 -E %s
|
||||
#ifdef TEST0
|
||||
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1010
|
||||
#error Invalid version
|
||||
|
@ -7,7 +7,7 @@
|
|||
#endif
|
||||
|
||||
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.0 \
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -DTEST1 -E %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -DTEST1 -E %s
|
||||
#ifdef TEST1
|
||||
#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ != 20000
|
||||
#error Invalid version
|
||||
|
@ -15,7 +15,7 @@
|
|||
#endif
|
||||
|
||||
// RUN: env IPHONEOS_DEPLOYMENT_TARGET=2.3.1 \
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -DTEST2 -E %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -DTEST2 -E %s
|
||||
#ifdef TEST2
|
||||
#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ != 20301
|
||||
#error Invalid version
|
||||
|
@ -23,7 +23,7 @@
|
|||
#endif
|
||||
|
||||
// RUN: env MACOSX_DEPLOYMENT_TARGET=10.4.10 \
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -DTEST3 -E %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -DTEST3 -E %s
|
||||
#ifdef TEST3
|
||||
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != 1049
|
||||
#error Invalid version
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### \
|
||||
// RUN: -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 \
|
||||
// RUN: -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 \
|
||||
// RUN: -c %s 2> %t
|
||||
|
@ -7,13 +7,13 @@
|
|||
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "i386-apple-macosx10.4.0"
|
||||
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "x86_64-apple-macosx10.5.0"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### \
|
||||
// RUN: -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-LINK < %t %s
|
||||
//
|
||||
// CHECK-LINK: ld{{.*}} "-arch" "i386"{{.*}} "-some-linker-arg"
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -### \
|
||||
// RUN: -arch armv7 -Xarch_armv7 -Wl,-some-linker-arg -filelist X 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ARMV7-LINK < %t %s
|
||||
//
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -m64 -v 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -m64 -v 2> %t
|
||||
// RUN: grep 'Target: x86_64-unknown-unknown' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -arch ppc -m64 -v 2> %t
|
||||
// RUN: %clang -target i386-apple-darwin9 -arch ppc -m64 -v 2> %t
|
||||
// RUN: grep 'Target: powerpc64-apple-darwin9' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t
|
||||
// RUN: %clang -target i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t
|
||||
// RUN: grep 'Target: powerpc-apple-darwin9' %t
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple amd64-pc-dragonfly %s -### 2> %t.log
|
||||
// RUN: %clang -target amd64-pc-dragonfly %s -### 2> %t.log
|
||||
// RUN: FileCheck -input-file %t.log %s
|
||||
|
||||
// CHECK: clang{{.*}}" "-cc1" "-triple" "amd64-pc-dragonfly"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin9 \
|
||||
// RUN: %clang -target x86_64-apple-darwin9 \
|
||||
// RUN: -fsyntax-only -fno-exceptions %s
|
||||
|
||||
void f1() {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -S -msoft-float %s 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -S -msoft-float %s 2> %t.log
|
||||
// RUN: grep '"-no-implicit-float"' %t.log
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -S -msoft-float -mno-soft-float %s 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -S -msoft-float -mno-soft-float %s 2> %t.log
|
||||
// RUN: grep '"-no-implicit-float"' %t.log | count 0
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -### -S -mno-soft-float %s -msoft-float 2> %t.log
|
||||
// RUN: %clang -target i386-apple-darwin9 -### -S -mno-soft-float %s -msoft-float 2> %t.log
|
||||
// RUN: grep '"-no-implicit-float"' %t.log
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// RUN: %clang -ccc-host-triple i386-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-32 %s
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-32 %s
|
||||
// RUN: %clang -ccc-host-triple i386-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-32 %s
|
||||
// RUN: %clang -target i386-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-32 %s
|
||||
// RUN: %clang -target i386-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-32 %s
|
||||
// RUN: %clang -target i386-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-32 %s
|
||||
// RUN: %clang -target i386-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-32 %s
|
||||
// RUN: %clang -target i386-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-32 %s
|
||||
|
||||
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-64 %s
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-64 %s
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-64 %s
|
||||
// RUN: %clang -target x86_64-pc-linux -### -S -O0 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK0-64 %s
|
||||
// RUN: %clang -target x86_64-pc-linux -### -S -O1 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK1-64 %s
|
||||
// RUN: %clang -target x86_64-pc-linux -### -S -O2 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK2-64 %s
|
||||
// RUN: %clang -target x86_64-pc-linux -### -S -O3 %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECK3-64 %s
|
||||
// RUN: %clang -target x86_64-pc-linux -### -S -Os %s -o %t.s 2>&1 | FileCheck -check-prefix=CHECKs-64 %s
|
||||
|
||||
// CHECK0-32: -mdisable-fp-elim
|
||||
// CHECK1-32-NOT: -mdisable-fp-elim
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-clang-archs "" -ccc-host-triple powerpc64-pc-freebsd8 %s -### 2> %t
|
||||
// RUN: %clang -ccc-clang-archs "" -target powerpc64-pc-freebsd8 %s -### 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-PPC < %t %s
|
||||
//
|
||||
// CHECK-PPC: clang{{.*}}" "-cc1" "-triple" "powerpc64-pc-freebsd8"
|
||||
|
@ -7,13 +7,13 @@
|
|||
|
||||
// Check that -m32 properly adjusts the toolchain flags.
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -### %s 2> %t
|
||||
// RUN: %clang -target x86_64-pc-freebsd8 -m32 -### %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-LIB32 < %t %s
|
||||
//
|
||||
// CHECK-LIB32: clang{{.*}}" "-cc1" "-triple" "i386-pc-freebsd8"
|
||||
// CHECK-LIB32: ld{{.*}}" {{.*}} "-m" "elf_i386_fbsd"
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -print-search-dirs %s > %t
|
||||
// RUN: %clang -target x86_64-pc-freebsd8 -m32 -print-search-dirs %s > %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-LIB32PATHS < %t %s
|
||||
//
|
||||
// CHECK-LIB32PATHS: libraries: ={{.*:?}}/usr/lib32
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Check that we don't try to forward -Xclang or -mlinker-version to GCC.
|
||||
//
|
||||
// RUN: %clang -ccc-host-triple powerpc-unknown-unknown \
|
||||
// RUN: %clang -target powerpc-unknown-unknown \
|
||||
// RUN: -ccc-clang-archs i386 -c %s \
|
||||
// RUN: -Xclang foo-bar \
|
||||
// RUN: -mlinker-version=10 -### 2> %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -### -fsyntax-only -fgnu-runtime %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -### -x objective-c++ -fsyntax-only -fgnu-runtime %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang -target i386-apple-darwin10 -### -fsyntax-only -fgnu-runtime %s 2>&1 | FileCheck %s
|
||||
// RUN: %clang -target i386-apple-darwin10 -### -x objective-c++ -fsyntax-only -fgnu-runtime %s 2>&1 | FileCheck %s
|
||||
// CHECK: -fgnu-runtime
|
||||
// CHECK: -fobjc-runtime-has-arc
|
||||
// CHECK: -fobjc-runtime-has-weak
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang -### -x objective-c -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
|
||||
// RUN: %clang -### -x objective-c -ccc-host-triple i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
|
||||
// RUN: %clang -### -x objective-c -target i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=40201 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
|
||||
// RUN: %clang -### -x objective-c -target i386-apple-darwin10 -arch i386 -mmacosx-version-min=10.6 -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -fobjc-arc -fsyntax-only %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
|
||||
//
|
||||
|
||||
// CHECK-OPTIONS1-NOT: -fobjc-runtime-has-weak
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang -ccc-host-triple le32-unknown-nacl -ccc-clang-archs le32 -ccc-echo %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO
|
||||
// RUN: %clang -ccc-host-triple le32-unknown-nacl -ccc-clang-archs le32 %s -emit-llvm -S -c -o - | FileCheck %s
|
||||
// RUN: %clang -ccc-host-triple le32-unknown-nacl -ccc-clang-archs le32 %s -emit-llvm -S -c -pthread -o - | FileCheck %s -check-prefix=THREADS
|
||||
// RUN: %clang -target le32-unknown-nacl -ccc-clang-archs le32 -ccc-echo %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO
|
||||
// RUN: %clang -target le32-unknown-nacl -ccc-clang-archs le32 %s -emit-llvm -S -c -o - | FileCheck %s
|
||||
// RUN: %clang -target le32-unknown-nacl -ccc-clang-archs le32 %s -emit-llvm -S -c -pthread -o - | FileCheck %s -check-prefix=THREADS
|
||||
|
||||
// ECHO: {{.*}} -cc1 {{.*}}le32-unknown-nacl.c
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//
|
||||
// Test a very broken version of multiarch that shipped in Ubuntu 11.04.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux \
|
||||
// RUN: -target i386-unknown-linux \
|
||||
// RUN: --sysroot=%S/Inputs/ubuntu_11.04_multiarch_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-UBUNTU-11-04 %s
|
||||
// CHECK-UBUNTU-11-04: "{{.*}}clang{{.*}}" "-cc1"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// sysroot to make these tests independent of the host system.
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux \
|
||||
// RUN: -target i386-unknown-linux \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s
|
||||
// CHECK-LD-32: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -14,7 +14,7 @@
|
|||
// CHECK-LD-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple x86_64-unknown-linux \
|
||||
// RUN: -target x86_64-unknown-linux \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-LD-64 %s
|
||||
// CHECK-LD-64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -26,7 +26,7 @@
|
|||
// CHECK-LD-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: --sysroot=%S/Inputs/multilib_32bit_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-32-TO-32 %s
|
||||
// CHECK-32-TO-32: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -42,7 +42,7 @@
|
|||
// CHECK-32-TO-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m64 \
|
||||
// RUN: -target i386-unknown-linux -m64 \
|
||||
// RUN: --sysroot=%S/Inputs/multilib_32bit_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-32-TO-64 %s
|
||||
// CHECK-32-TO-64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -59,7 +59,7 @@
|
|||
// CHECK-32-TO-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple x86_64-unknown-linux -m64 \
|
||||
// RUN: -target x86_64-unknown-linux -m64 \
|
||||
// RUN: --sysroot=%S/Inputs/multilib_64bit_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-64-TO-64 %s
|
||||
// CHECK-64-TO-64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -75,7 +75,7 @@
|
|||
// CHECK-64-TO-64: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple x86_64-unknown-linux -m32 \
|
||||
// RUN: -target x86_64-unknown-linux -m32 \
|
||||
// RUN: --sysroot=%S/Inputs/multilib_64bit_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-64-TO-32 %s
|
||||
// CHECK-64-TO-32: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -92,7 +92,7 @@
|
|||
// CHECK-64-TO-32: "-L[[SYSROOT]]/usr/lib"
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/fake_install_tree/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-INSTALL-DIR-32 %s
|
||||
|
@ -103,7 +103,7 @@
|
|||
// Check that with 64-bit builds, we don't actually use the install directory
|
||||
// as its version of GCC is lower than our sysrooted version.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple x86_64-unknown-linux -m64 \
|
||||
// RUN: -target x86_64-unknown-linux -m64 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/fake_install_tree/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-INSTALL-DIR-64 %s
|
||||
|
@ -114,7 +114,7 @@
|
|||
// Check that we support unusual patch version formats, including missing that
|
||||
// component.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/gcc_version_parsing1/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-GCC-VERSION1 %s
|
||||
|
@ -122,7 +122,7 @@
|
|||
// CHECK-GCC-VERSION1: "{{.*}}/Inputs/gcc_version_parsing1/bin/../lib/gcc/i386-unknown-linux/4.7/crtbegin.o"
|
||||
// CHECK-GCC-VERSION1: "-L{{.*}}/Inputs/gcc_version_parsing1/bin/../lib/gcc/i386-unknown-linux/4.7"
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/gcc_version_parsing2/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-GCC-VERSION2 %s
|
||||
|
@ -130,7 +130,7 @@
|
|||
// CHECK-GCC-VERSION2: "{{.*}}/Inputs/gcc_version_parsing2/bin/../lib/gcc/i386-unknown-linux/4.7.x/crtbegin.o"
|
||||
// CHECK-GCC-VERSION2: "-L{{.*}}/Inputs/gcc_version_parsing2/bin/../lib/gcc/i386-unknown-linux/4.7.x"
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/gcc_version_parsing3/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-GCC-VERSION3 %s
|
||||
|
@ -138,7 +138,7 @@
|
|||
// CHECK-GCC-VERSION3: "{{.*}}/Inputs/gcc_version_parsing3/bin/../lib/gcc/i386-unknown-linux/4.7.99-rc5/crtbegin.o"
|
||||
// CHECK-GCC-VERSION3: "-L{{.*}}/Inputs/gcc_version_parsing3/bin/../lib/gcc/i386-unknown-linux/4.7.99-rc5"
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux -m32 \
|
||||
// RUN: -target i386-unknown-linux -m32 \
|
||||
// RUN: -ccc-install-dir %S/Inputs/gcc_version_parsing4/bin \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-GCC-VERSION4 %s
|
||||
|
@ -148,7 +148,7 @@
|
|||
//
|
||||
// Test a very broken version of multiarch that shipped in Ubuntu 11.04.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple i386-unknown-linux \
|
||||
// RUN: -target i386-unknown-linux \
|
||||
// RUN: --sysroot=%S/Inputs/ubuntu_11.04_multiarch_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-UBUNTU-11-04 %s
|
||||
// CHECK-UBUNTU-11-04: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -162,7 +162,7 @@
|
|||
//
|
||||
// Test the setup that shipped in SUSE 10.3 on ppc64.
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple powerpc64-suse-linux \
|
||||
// RUN: -target powerpc64-suse-linux \
|
||||
// RUN: --sysroot=%S/Inputs/suse_10.3_ppc64_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-SUSE-10-3-PPC64 %s
|
||||
// CHECK-SUSE-10-3-PPC64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
|
@ -175,22 +175,22 @@
|
|||
// Check that we do not pass --hash-style=gnu and --hash-style=both to linker
|
||||
// when build for MIPS platforms.
|
||||
// RUN: %clang %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple mips-linux-gnu -ccc-clang-archs mips \
|
||||
// RUN: -target mips-linux-gnu -ccc-clang-archs mips \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-MIPS %s
|
||||
// CHECK-MIPS: "{{.*}}ld{{(.exe)?}}"
|
||||
// CHECK-MIPS-NOT: "--hash-style={{gnu|both}}"
|
||||
// RUN: %clang %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple mipsel-linux-gnu -ccc-clang-archs mipsel \
|
||||
// RUN: -target mipsel-linux-gnu -ccc-clang-archs mipsel \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s
|
||||
// CHECK-MIPSEL: "{{.*}}ld{{(.exe)?}}"
|
||||
// CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}"
|
||||
// RUN: %clang %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple mips64-linux-gnu -ccc-clang-archs mips64 \
|
||||
// RUN: -target mips64-linux-gnu -ccc-clang-archs mips64 \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-MIPS64 %s
|
||||
// CHECK-MIPS64: "{{.*}}ld{{(.exe)?}}"
|
||||
// CHECK-MIPS64-NOT: "--hash-style={{gnu|both}}"
|
||||
// RUN: %clang %s -### -o %t.o 2>&1 \
|
||||
// RUN: -ccc-host-triple mips64el-linux-gnu -ccc-clang-archs mips64el \
|
||||
// RUN: -target mips64el-linux-gnu -ccc-clang-archs mips64el \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL %s
|
||||
// CHECK-MIPS64EL: "{{.*}}ld{{(.exe)?}}"
|
||||
// CHECK-MIPS64EL-NOT: "--hash-style={{gnu|both}}"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clang -ccc-host-triple armv7-apple-darwin10 \
|
||||
// RUN: %clang -target armv7-apple-darwin10 \
|
||||
// RUN: -mno-global-merge -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-NGM < %t %s
|
||||
|
||||
// CHECK-NGM: "-mno-global-merge"
|
||||
|
||||
// RUN: %clang -ccc-host-triple armv7-apple-darwin10 \
|
||||
// RUN: %clang -target armv7-apple-darwin10 \
|
||||
// RUN: -mglobal-merge -### -fsyntax-only %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-GM < %t %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple i686-pc-linux-gnu -### -nostdlib %s 2> %t
|
||||
// RUN: %clang -target i686-pc-linux-gnu -### -nostdlib %s 2> %t
|
||||
// RUN: FileCheck < %t %s
|
||||
//
|
||||
// CHECK-NOT: start-group
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-unknown-unknown \
|
||||
// RUN: %clang -target x86_64-unknown-unknown \
|
||||
// RUN: -nostdlibinc -ffreestanding -fsyntax-only %s
|
||||
|
||||
#if !__has_include("stddef.h")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-clang-archs "" -ccc-host-triple i686-pc-openbsd %s -### 2> %t.log
|
||||
// RUN: %clang -ccc-clang-archs "" -target i686-pc-openbsd %s -### 2> %t.log
|
||||
// RUN: FileCheck -input-file %t.log %s
|
||||
|
||||
// CHECK: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Basic compilation for various types of files.
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -x c %s -x objective-c %s -x c++ %s -x objective-c++ -x assembler %s -x assembler-with-cpp %s -x none %s 2>&1 | FileCheck -check-prefix=BASIC %s
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases -x c %s -x objective-c %s -x c++ %s -x objective-c++ -x assembler %s -x assembler-with-cpp %s -x none %s 2>&1 | FileCheck -check-prefix=BASIC %s
|
||||
// BASIC: 0: input, "{{.*}}phases.c", c
|
||||
// BASIC: 1: preprocessor, {0}, cpp-output
|
||||
// BASIC: 2: compiler, {1}, assembler
|
||||
|
@ -24,7 +24,7 @@
|
|||
// BASIC: 21: linker, {3, 7, 11, 13, 16, 20}, image
|
||||
|
||||
// Universal linked image.
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=ULI %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=ULI %s
|
||||
// ULI: 0: input, "{{.*}}phases.c", c
|
||||
// ULI: 1: preprocessor, {0}, cpp-output
|
||||
// ULI: 2: compiler, {1}, assembler
|
||||
|
@ -35,7 +35,7 @@
|
|||
// ULI: 7: lipo, {5, 6}, image
|
||||
|
||||
// Universal object file.
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=UOF %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=UOF %s
|
||||
// UOF: 0: input, "{{.*}}phases.c", c
|
||||
// UOF: 1: preprocessor, {0}, cpp-output
|
||||
// UOF: 2: compiler, {1}, assembler
|
||||
|
@ -45,33 +45,33 @@
|
|||
// UOF: 6: lipo, {4, 5}, object
|
||||
|
||||
// Arch defaulting
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x assembler %s 2>&1 | FileCheck -check-prefix=ARCH1 %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c -x assembler %s 2>&1 | FileCheck -check-prefix=ARCH1 %s
|
||||
// ARCH1: 2: bind-arch, "i386", {1}, object
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x assembler %s -m32 -m64 2>&1 | FileCheck -check-prefix=ARCH2 %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c -x assembler %s -m32 -m64 2>&1 | FileCheck -check-prefix=ARCH2 %s
|
||||
// ARCH2: 2: bind-arch, "x86_64", {1}, object
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s 2>&1 | FileCheck -check-prefix=ARCH3 %s
|
||||
// RUN: %clang -target x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s 2>&1 | FileCheck -check-prefix=ARCH3 %s
|
||||
// ARCH3: 2: bind-arch, "x86_64", {1}, object
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s -m64 -m32 2>&1 | FileCheck -check-prefix=ARCH4 %s
|
||||
// RUN: %clang -target x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s -m64 -m32 2>&1 | FileCheck -check-prefix=ARCH4 %s
|
||||
// ARCH4: 2: bind-arch, "i386", {1}, object
|
||||
|
||||
// Analyzer
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases --analyze %s 2>&1 | FileCheck -check-prefix=ANALYZE %s
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases --analyze %s 2>&1 | FileCheck -check-prefix=ANALYZE %s
|
||||
// ANALYZE: 0: input, "{{.*}}phases.c", c
|
||||
// ANALYZE: 1: preprocessor, {0}, cpp-output
|
||||
// ANALYZE: 2: analyzer, {1}, plist
|
||||
|
||||
// Precompiler
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -x c-header %s 2>&1 | FileCheck -check-prefix=PCH %s
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases -x c-header %s 2>&1 | FileCheck -check-prefix=PCH %s
|
||||
// PCH: 0: input, "{{.*}}phases.c", c-header
|
||||
// PCH: 1: preprocessor, {0}, c-header-cpp-output
|
||||
// PCH: 2: precompiler, {1}, precompiled-header
|
||||
|
||||
// Darwin overrides the handling for .s
|
||||
// RUN: touch %t.s
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -ccc-print-phases -c %t.s 2>&1 | FileCheck -check-prefix=DARWIN1 %s
|
||||
// RUN: %clang -target i386-unknown-unknown -ccc-print-phases -c %t.s 2>&1 | FileCheck -check-prefix=DARWIN1 %s
|
||||
// DARWIN1: 0: input, "{{.*}}.s", assembler
|
||||
// DARWIN1: 1: assembler, {0}, object
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c %t.s 2>&1 | FileCheck -check-prefix=DARWIN2 %s
|
||||
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c %t.s 2>&1 | FileCheck -check-prefix=DARWIN2 %s
|
||||
// DARWIN2: 0: input, "{{.*}}.s", assembler-with-cpp
|
||||
// DARWIN2: 1: preprocessor, {0}, assembler
|
||||
// DARWIN2: 2: assembler, {1}, object
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -mno-red-zone %s -S -emit-llvm -o %t.log
|
||||
// RUN: %clang -target i386-unknown-unknown -mno-red-zone %s -S -emit-llvm -o %t.log
|
||||
// RUN: grep 'noredzone' %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -mred-zone %s -S -emit-llvm -o %t.log
|
||||
// RUN: %clang -target i386-unknown-unknown -mred-zone %s -S -emit-llvm -o %t.log
|
||||
// RUN: grep -v 'noredzone' %t.log
|
||||
|
||||
int foo() { return 42; }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-macosx10.7.0 -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: %clang -target x86_64-apple-macosx10.7.0 -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=TEST0 %s
|
||||
// TEST0: clang{{.*}}" "-cc1"
|
||||
// TEST0: "-rewrite-objc"
|
||||
|
@ -6,10 +6,10 @@
|
|||
// TEST0: "-fmessage-length" "0" "-stack-protector" "1" "-mstackrealign" "-fblocks" "-fobjc-fragile-abi" "-fno-objc-infer-related-result-type" "-fobjc-exceptions" "-fexceptions" "-fdiagnostics-show-option"
|
||||
// TEST0: rewrite-objc.m"
|
||||
|
||||
// RUN: not %clang -ccc-no-clang -ccc-host-triple unknown -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: not %clang -ccc-no-clang -target unknown -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=TEST1 %s
|
||||
// TEST1: invalid output type 'rewritten-objc' for use with gcc
|
||||
|
||||
// RUN: not %clang -ccc-no-clang -ccc-host-triple i386-apple-darwin10 -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: not %clang -ccc-no-clang -target i386-apple-darwin10 -rewrite-objc %s -o - -### 2>&1 | \
|
||||
// RUN: FileCheck -check-prefix=TEST2 %s
|
||||
// TEST2: invalid output type 'rewritten-objc' for use with gcc
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
// Check that we get both isysroot for headers, and pass --sysroot on to GCC to
|
||||
// produce the final binary.
|
||||
// RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu \
|
||||
// RUN: %clang -### -target x86_64-unknown-linux-gnu \
|
||||
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | \
|
||||
// RUN: FileCheck %s -check-prefix=SYSROOT_EQ
|
||||
// SYSROOT_EQ: "-isysroot" "{{[^"]*}}/foo/bar"
|
||||
|
@ -14,14 +14,14 @@
|
|||
|
||||
// Check for overriding the header sysroot by providing both --sysroot and
|
||||
// -isysroot.
|
||||
// RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu -isysroot /baz \
|
||||
// RUN: %clang -### -target x86_64-unknown-linux-gnu -isysroot /baz \
|
||||
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | FileCheck %s \
|
||||
// RUN: -check-prefix=ISYSROOT_AND_SYSROOT
|
||||
// ISYSROOT_AND_SYSROOT: "-isysroot" "{{[^"]*}}/baz"
|
||||
// ISYSROOT_AND_SYSROOT: "--sysroot{{" "|=}}{{[^"]*}}/foo/bar"
|
||||
|
||||
// Check that omitting the equals works as well.
|
||||
// RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu \
|
||||
// RUN: %clang -### -target x86_64-unknown-linux-gnu \
|
||||
// RUN: --sysroot /foo/bar -o /dev/null %s 2>&1 | \
|
||||
// RUN: FileCheck %s -check-prefix=SYSROOT_SEPARATE
|
||||
// SYSROOT_SEPARATE: "-isysroot" "{{[^"]*}}/foo/bar"
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
// Check that --sysroot= also applies to header search paths.
|
||||
// RUN: %clang -ccc-host-triple i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1
|
||||
// RUN: %clang -target i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1
|
||||
// RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s
|
||||
// CHECK-SYSROOTEQ: "-cc1"{{.*}} "-isysroot" "{{[^"]*}}/FOO"
|
||||
|
||||
// Apple Darwin uses -isysroot as the syslib root, too.
|
||||
// RUN: touch %t2.o
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -isysroot /FOO -### %t2.o 2> %t2
|
||||
// RUN: FileCheck --check-prefix=CHECK-APPLE-ISYSROOT < %t2 %s
|
||||
// CHECK-APPLE-ISYSROOT: "-arch" "i386"{{.*}} "-syslibroot" "{{[^"]*}}/FOO"
|
||||
|
||||
// Check that honor --sysroot= over -isysroot, for Apple Darwin.
|
||||
// RUN: touch %t3.o
|
||||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 \
|
||||
// RUN: %clang -target i386-apple-darwin10 \
|
||||
// RUN: -isysroot /FOO --sysroot=/BAR -### %t3.o 2> %t3
|
||||
// RUN: FileCheck --check-prefix=CHECK-APPLE-SYSROOT < %t3 %s
|
||||
// CHECK-APPLE-SYSROOT: "-arch" "i386"{{.*}} "-syslibroot" "{{[^"]*}}/BAR"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### 2> %t.log
|
||||
// RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### 2> %t.log
|
||||
// RUN: grep '.*gcc.*"-m64"' %t.log
|
||||
// RUN: %clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### -m32 2> %t.log
|
||||
// RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### -m32 2> %t.log
|
||||
// RUN: grep '.*gcc.*"-m32"' %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### 2> %t.log
|
||||
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### 2> %t.log
|
||||
// RUN: grep '.*gcc.*"-m32"' %t.log
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### -m64 2> %t.log
|
||||
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### -m64 2> %t.log
|
||||
// RUN: grep '.*gcc.*"-m64"' %t.log
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2> %t
|
||||
// RUN: %clang -target i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2> %t
|
||||
// RUN: grep '"pentium4" "-target-feature" "+sse4" "-target-feature" "-mmx" "-target-feature" "+sse"' %t
|
||||
// Note that we filter out all but the last -m(no)sse.
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -dM -E -o %t %s
|
||||
// RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
||||
// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s
|
||||
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0
|
||||
// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s
|
||||
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0
|
||||
// RUN: %clang -ccc-host-triple armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s
|
||||
// RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin8 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin9 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin10 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
|
||||
// RUN: %clang -ccc-host-triple i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s
|
||||
// RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.6 -dM -E -o %t %s
|
||||
// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang -ccc-host-triple i386-apple-darwin10 -fsyntax-only -Xclang -verify -std=c89 %s
|
||||
// RUN: %clang -target i386-apple-darwin10 -fsyntax-only -Xclang -verify -std=c89 %s
|
||||
|
||||
// FIXME: Disable inclusion of mm_malloc.h, our current implementation is broken
|
||||
// on win32 since we don't generally know how to find errno.h.
|
||||
|
|
|
@ -567,7 +567,7 @@ static Rdar8595462_A * Rdar8595462_staticVar;
|
|||
// CHECK-PROP-AFTER-METHOD: Punctuation: ";" [137:39 - 137:40] ObjCInterfaceDecl=Rdar8062781:134:12
|
||||
// CHECK-PROP-AFTER-METHOD: Punctuation: "@" [138:1 - 138:2] ObjCInterfaceDecl=Rdar8062781:134:12
|
||||
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:141:1:142:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' -ccc-host-triple x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s
|
||||
// RUN: c-index-test -test-annotate-tokens=%s:141:1:142:1 %s -DIBOutlet='__attribute__((iboutlet))' -DIBAction='void)__attribute__((ibaction)' -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s
|
||||
// CHECK-WITH-WEAK: Identifier: "__weak" [141:3 - 141:9] macro expansion
|
||||
// CHECK-WITH-WEAK: Identifier: "Foo" [141:10 - 141:13] ObjCClassRef=Foo:1:12
|
||||
// CHECK-WITH-WEAK: Punctuation: "*" [141:14 - 141:15] ObjCIvarDecl=foo:141:15 (Definition)
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
// CHECK-PROP: ObjCPropertyDecl=foo1:4:26
|
||||
// CHECK-PROP: ObjCPropertyDecl=foo2:5:27
|
||||
|
||||
// RUN: c-index-test -cursor-at=%s:11:11 %s -ccc-host-triple x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s
|
||||
// RUN: c-index-test -cursor-at=%s:11:11 %s -target x86_64-apple-macosx10.7.0 | FileCheck -check-prefix=CHECK-WITH-WEAK %s
|
||||
// CHECK-WITH-WEAK: ObjCClassRef=Foo:8:8
|
||||
|
||||
// RUN: c-index-test -cursor-at=%s:20:10 %s | FileCheck -check-prefix=CHECK-METHOD %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: c-index-test -test-load-source all -ccc-host-triple x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source-reparse 1 all -ccc-host-triple x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source-reparse 5 all -ccc-host-triple x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source-reparse 1 all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source-reparse 5 all -target x86_64-apple-darwin10.0.0 -msse4.1 %s 2>&1 | FileCheck %s
|
||||
|
||||
// CHECK: error: #error SSE4_1 used
|
||||
#if defined(__SSE4_1__)
|
||||
|
|
|
@ -88,7 +88,7 @@ int test_multi_declaration(void) {
|
|||
@property (assign) id pro_ext;
|
||||
@end
|
||||
|
||||
// RUN: c-index-test -test-load-source-usrs all -ccc-host-triple x86_64-apple-macosx10.7 %s | FileCheck %s
|
||||
// RUN: c-index-test -test-load-source-usrs all -target x86_64-apple-macosx10.7 %s | FileCheck %s
|
||||
// CHECK: usrs.m c:usrs.m@67@F@my_helper Extent=[3:1 - 3:60]
|
||||
// CHECK: usrs.m c:usrs.m@95@F@my_helper@x Extent=[3:29 - 3:34]
|
||||
// CHECK: usrs.m c:usrs.m@102@F@my_helper@y Extent=[3:36 - 3:41]
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: %clang -fsyntax-only %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=clang %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=clang -ccc-host-triple x86_64-pc-win32 %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=clang -target x86_64-pc-win32 %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
|
||||
//
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=msvc %s 2>&1 | FileCheck %s -check-prefix=MSVC
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -ccc-host-triple x86_64-pc-win32 %s 2>&1 | FileCheck %s -check-prefix=MSVC
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -ccc-host-triple x86_64-pc-win32 -fshow-column %s 2>&1 | FileCheck %s -check-prefix=MSVC
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -target x86_64-pc-win32 %s 2>&1 | FileCheck %s -check-prefix=MSVC
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=msvc -target x86_64-pc-win32 -fshow-column %s 2>&1 | FileCheck %s -check-prefix=MSVC
|
||||
//
|
||||
// RUN: %clang -fsyntax-only -fdiagnostics-format=vi %s 2>&1 | FileCheck %s -check-prefix=VI
|
||||
//
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 --relocatable-pch -o %t \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \
|
||||
// RUN: -isysroot %S/libroot %S/libroot/usr/include/reloc.h
|
||||
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only \
|
||||
// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \
|
||||
// RUN: -include-pch %t -isysroot %S/libroot %s -Xclang -verify
|
||||
// RUN: not %clang -ccc-host-triple x86_64-apple-darwin10 -include-pch %t %s
|
||||
// RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s
|
||||
|
||||
#include <reloc.h>
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -static -dM -E -o %t %s
|
||||
// RUN: grep '#define __PIC__' %t | count 0
|
||||
// RUN: grep '#define __pic__' %t | count 0
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -fpic -dM -E -o %t %s
|
||||
// RUN: grep '#define __PIC__ 1' %t | count 1
|
||||
// RUN: grep '#define __pic__ 1' %t | count 1
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -fPIC -dM -E -o %t %s
|
||||
// RUN: grep '#define __PIC__ 2' %t | count 1
|
||||
// RUN: grep '#define __pic__ 2' %t | count 1
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
// FIXME: Use -triple, not -ccc-host-triple.
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -x c -E -dM -o %t %s
|
||||
// RUN: grep '#define __SSE2_MATH__ 1' %t
|
||||
// RUN: grep '#define __SSE2__ 1' %t
|
||||
// RUN: grep '#define __SSE3__ 1' %t
|
||||
|
@ -10,7 +8,7 @@
|
|||
// RUN: grep '#define __SSE__ 1' %t
|
||||
// RUN: grep '#define __SSSE3__ 1' %t
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -march=core2 -msse4 -mno-sse2 -x c -E -dM -o %t %s
|
||||
// RUN: grep '#define __SSE2_MATH__ 1' %t | count 0
|
||||
// RUN: grep '#define __SSE2__ 1' %t | count 0
|
||||
// RUN: grep '#define __SSE3__ 1' %t | count 0
|
||||
|
@ -20,7 +18,7 @@
|
|||
// RUN: grep '#define __SSE__ 1' %t
|
||||
// RUN: grep '#define __SSSE3__ 1' %t | count 0
|
||||
|
||||
// RUN: %clang -ccc-host-triple i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s
|
||||
// RUN: %clang -target i386-unknown-unknown -march=pentium-m -x c -E -dM -o %t %s
|
||||
// RUN: grep '#define __SSE2_MATH__ 1' %t
|
||||
// RUN: grep '#define __SSE2__ 1' %t
|
||||
// RUN: grep '#define __SSE3__ 1' %t | count 0
|
||||
|
|
|
@ -271,7 +271,7 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
|
|||
// the function tries to identify a target as prefix. E.g.
|
||||
// "x86_64-linux-clang" as interpreted as suffix "clang" with
|
||||
// target prefix "x86_64-linux". If such a target prefix is found,
|
||||
// is gets added via -ccc-host-triple as implicit first argument.
|
||||
// is gets added via -target as implicit first argument.
|
||||
static const struct {
|
||||
const char *Suffix;
|
||||
bool IsCXX;
|
||||
|
@ -331,7 +331,7 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
|
|||
++it;
|
||||
ArgVector.insert(it, SaveStringInSet(SavedStrings, Prefix));
|
||||
ArgVector.insert(it,
|
||||
SaveStringInSet(SavedStrings, std::string("-ccc-host-triple")));
|
||||
SaveStringInSet(SavedStrings, std::string("-target")));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue