2015-08-10 19:11:28 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-X86 %s
|
2011-03-18 01:10:06 +08:00
|
|
|
|
|
|
|
// CHECK-X86: "-disable-red-zone"
|
|
|
|
// CHECK-X86: "-fno-builtin"
|
|
|
|
// CHECK-X86: "-fno-rtti"
|
2020-03-10 03:25:24 +08:00
|
|
|
// CHECK-X86-NOT: "-fcommon"
|
2011-03-18 01:10:06 +08:00
|
|
|
|
2015-08-10 19:11:28 +08:00
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -mkernel -### -fsyntax-only -fbuiltin -fcommon %s 2>&1 | FileCheck --check-prefix=CHECK-X86-2 %s
|
|
|
|
|
|
|
|
// CHECK-X86-2: "-disable-red-zone"
|
|
|
|
// CHECK-X86-2-NOT: "-fno-builtin"
|
|
|
|
// CHECK-X86-2: "-fno-rtti"
|
|
|
|
// CHECK-X86-2-NOT: "-fno-common"
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 -arch armv7 -mkernel -mstrict-align -### -fsyntax-only -fbuiltin -fno-builtin -fcommon -fno-common %s 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
|
2011-03-18 01:10:06 +08:00
|
|
|
|
2015-07-07 14:42:05 +08:00
|
|
|
// CHECK-ARM: "-target-feature" "+long-calls"
|
2015-07-29 06:26:45 +08:00
|
|
|
// CHECK-ARM: "-target-feature" "+strict-align"
|
|
|
|
// CHECK-ARM-NOT: "-target-feature" "+strict-align"
|
2011-03-18 01:10:06 +08:00
|
|
|
// CHECK-ARM: "-fno-builtin"
|
|
|
|
// CHECK-ARM: "-fno-rtti"
|
2020-03-10 03:25:24 +08:00
|
|
|
// CHECK-ARM-NOT: "-fcommon"
|
2012-03-27 06:43:28 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-apple-darwin10 \
|
|
|
|
// RUN: -Werror -fno-builtin -fno-exceptions -fno-common -fno-rtti \
|
|
|
|
// RUN: -mkernel -fsyntax-only %s
|