hanchenye-llvm-project/clang/test/Driver
Alexey Samsonov 8845952b54 Reimplement -fsanitize-recover family of flags.
Introduce the following -fsanitize-recover flags:
  - -fsanitize-recover=<list>: Enable recovery for selected checks or
      group of checks. It is forbidden to explicitly list unrecoverable
      sanitizers here (that is, "address", "unreachable", "return").
  - -fno-sanitize-recover=<list>: Disable recovery for selected checks or
     group of checks.
  - -f(no-)?sanitize-recover is now a synonym for
    -f(no-)?sanitize-recover=undefined,integer and will soon be deprecated.

These flags are parsed left to right, and mask of "recoverable"
sanitizer is updated accordingly, much like what we do for -fsanitize= flags.
-fsanitize= and -fsanitize-recover= flag families are independent.

CodeGen change: If there is a single UBSan handler function, responsible
for implementing multiple checks, which have different recoverable setting,
then we emit two handler calls instead of one:
the first one for the set of "unrecoverable" checks, another one - for
set of "recoverable" checks. If all checks implemented by a handler have the
same recoverability setting, then the generated code will be the same.

llvm-svn: 225719
2015-01-12 22:39:12 +00:00
..
Inputs test: attempt to make test more hermetic 2014-10-25 20:49:12 +00:00
B-opt.c Fix Driver tests that I broke on Windows in r214924 2014-08-05 22:39:07 +00:00
O.c
Ofast.c
Wp-args.c Fix option typo. 2013-10-27 14:46:16 +00:00
Xarch.c
Xlinker-args.c Typically linker options are protected with -Xlinker or -Wl, 2014-07-16 21:16:16 +00:00
aarch64-cpus.c MachO: use "arm64" as the triple name in modules. 2014-07-24 10:25:34 +00:00
aarch64-features.c [ARM64] Plumb in the -mfpu= flag. 2014-04-16 15:33:56 +00:00
aarch64-fix-cortex-a53-835769.c [AArch64] Enable A53 erratum workaround (835769) by default for Android targets 2014-10-16 16:35:14 +00:00
aarch64-mgeneral_regs_only.c [ARM64] Plumb in the -mfpu= flag. 2014-04-16 15:33:56 +00:00
altivec-asm.S [PPC64LE] Run some existing Altivec tests on powerpc64le as well 2014-06-13 18:30:06 +00:00
analyze.c
android-standalone.cpp [ARM64] Port remaining relevant AArch64 clang tests over to ARM64 2014-04-30 10:52:05 +00:00
apple-kext-mkernel.c
arc-exceptions.m
arc.c
arch.c
arclite-link.c
arm-abi.c Reinstate aapcs as the default arm abi. 2014-12-18 02:08:51 +00:00
arm-alignment.c Emit diagnostic for -munaligned-access on v6m 2014-10-07 15:11:32 +00:00
arm-arch-darwin.c Refactor duplicate functions 2013-12-12 13:27:11 +00:00
arm-cortex-cpus.c D5823: Fix typo in Clang test arm-cortex-cpus.c; patch by Gabor Ballabas! 2014-10-20 13:48:19 +00:00
arm-darwin-builtin.c
arm-fixed-r9.c Fix typo in ARM reserved-r9 test case 2014-10-11 10:34:18 +00:00
arm-hwdiv.c ARM: be more flexible about how --mhwdiv is accepted. 2014-03-26 14:09:48 +00:00
arm-long-calls.c Driver: correct the backend option spelling 2014-06-18 16:52:24 +00:00
arm-mfpu.c Correction to -mfu=neon-vfpv4 to pass the correct backend feature name 2014-12-18 16:31:18 +00:00
arm-restrict-it.c Add test case for r194593 2013-11-13 21:40:17 +00:00
arm64-as.s [Driver][ARM64] Add a testcase for r206227. 2014-04-22 18:29:43 +00:00
arm64-darwinpcs.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
armv8-crc.c ARM: Add -m[no-]crc to dis/enable CRC subtargetfeature from clang 2013-10-29 09:47:51 +00:00
asan.c Kill -faddress-sanitizer, -fthread-sanitizer and -fcatch-undefined-behavior flags. 2014-03-20 10:48:29 +00:00
ast.c Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
at_file.c
at_file.c.args
at_file.c.args.utf16le
at_file_missing.c test/Driver: Check that @ arguments that aren't files are handled 2013-12-06 22:57:13 +00:00
autolink_integrated_as.c
biarch.c Only override the target architecture on -m32 and friends if it is 2014-09-10 21:25:37 +00:00
bindings.c Revert r211866, r211895 and r211995, "Driver: use GNU::Link for the Generic_GCC toolchain". It broke users of Generic_GCC, cygwin and mingw32. 2014-06-29 16:00:11 +00:00
bitrig.c Bitrig's standard C++ standard library changed from libstdc++ to libc++. 2014-05-01 23:24:24 +00:00
cc-log-diagnostics.c
cc-print-options.c
cc1-response-files.c Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind 2014-08-22 19:29:30 +00:00
ccc-as-cpp.c
ccc-host-triple-no-integrated-as.c
cl-eh.cpp clang-cl: Map /EHs- to -fno-exceptions 2014-06-27 17:02:02 +00:00
cl-fallback.c Driver: Handle /GR- in a compatible way with MSVC 2014-07-01 22:24:56 +00:00
cl-inputs.c clang-cl: Warn when a /TC or /TP argument is unused 2014-09-12 21:44:24 +00:00
cl-link-at-file.c Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind 2014-08-22 19:29:30 +00:00
cl-link.c [ASan/Win] Fix PR20918 -- SEH handler doesn't work with the MD runtime 2014-09-12 14:01:30 +00:00
cl-options.c clang-cl: Various changes to /Zc: handling. 2014-12-23 22:55:34 +00:00
cl-outputs.c clang-cl: Allow /Fo without an argument (PR21589) 2014-11-17 19:16:36 +00:00
cl-runtime-flags.c
cl-x86-flags.c Fix test/Driver/cl-x86-flags.c by providing explicit --target 2014-07-23 17:09:26 +00:00
cl-zc.cpp clang-cl: Various changes to /Zc: handling. 2014-12-23 22:55:34 +00:00
cl.c Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
claim-unused.c
clang-c-as-cxx.c
clang-exception-flags.cpp
clang-g-opts.c specify dwarf version for Solaris 2014-10-16 05:55:24 +00:00
clang-s-opts.s Remove -Werror from test. 2015-01-03 00:28:47 +00:00
clang-translation.c Add ppc64/power8 as a target 2014-06-26 13:34:10 +00:00
clang_cpp.c
clang_f_opts.c Alright, just XFAIL all these for Windows. 2014-10-10 17:20:10 +00:00
clang_f_opts.h
clang_wrapv_opts.c
code-model.c Driver: parse -mcmodel earlier 2014-05-08 02:28:32 +00:00
color-diagnostics.c
compress.c Fix up compression related test cases 2014-04-01 00:27:28 +00:00
constructors.c Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
coverage-ld.c Revert "Link in profile library on Linux using --whole-archive" 2014-03-28 17:53:17 +00:00
coverage_no_integrated_as.c Alright, just XFAIL all these for Windows. 2014-10-10 17:20:10 +00:00
cpath.c
cpp-precomp.c
crash report spaces.c Driver: Quote the command in crash reproduction scripts. 2014-10-21 18:03:08 +00:00
crash-report-modules.m Driver: Quote the command in crash reproduction scripts. 2014-10-21 18:03:08 +00:00
crash-report-null.test Driver: Tighten up crash report tests 2014-10-21 05:13:09 +00:00
crash-report.c Driver: Quote the command in crash reproduction scripts. 2014-10-21 18:03:08 +00:00
cross-linux.c Fix Driver tests that I broke on Windows in r214924 2014-08-05 22:39:07 +00:00
darwin-arch-default.c Call powerpc-darwin external tools with -arch ppc. 2014-08-28 21:23:05 +00:00
darwin-as.c darwin asm driver: suppress -Q for -no-integrated-as on darwin<11 2013-12-10 22:51:25 +00:00
darwin-asan-nofortify.c Kill -faddress-sanitizer, -fthread-sanitizer and -fcatch-undefined-behavior flags. 2014-03-20 10:48:29 +00:00
darwin-debug-flags.c IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
darwin-dsymutil.c Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
darwin-embedded.c MachO embedded: default to soft float without issuing warning 2014-01-23 15:00:01 +00:00
darwin-iphone-defaults.m
darwin-ld-demangle.c CMake: Set HOST_LINK_VERSION on Darwin (PR21268) 2014-11-13 00:35:23 +00:00
darwin-ld.c Remove a FIXME: use the ios_simulator_version_min linker option consistently. 2014-10-10 19:38:34 +00:00
darwin-max-type-align.c Introduce f[no-]max-unknown-pointer-align=[number] option 2014-08-05 18:37:48 +00:00
darwin-objc-defaults.m Objective-C driver. Do not use legacy dispatch for 2014-02-05 17:13:42 +00:00
darwin-objc-gc.m
darwin-objc-options.m Fix assertion failure left over from changes to move away from "darwin" triples. 2013-12-05 19:38:42 +00:00
darwin-sanitizer-ld.c Fix the test failure on Windows introduced by r221279. 2014-11-04 23:38:57 +00:00
darwin-sdkroot.c Re-enable this test on Windows since it passes with GnuWin32 env.exe. 2014-11-04 14:54:37 +00:00
darwin-verify-debug.c Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
darwin-version.c
darwin-xarch.c
debug-comp-dir.S
debug-main-file.S
debug-options-as.c
debug-options.c Treat -g1 as -gline-tables-only 2014-10-21 19:20:21 +00:00
debug-unsupported.c
debug.c
default-image-name.c Driver: tweak the code for determining default image name 2015-01-09 17:38:53 +00:00
default-toolchain.c
diagnostics.c
dragonfly.c
dyld-prefix.c [x32] Adding X32 target support to driver, including TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin). 2014-07-10 15:27:19 +00:00
env.c Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
exceptions.m Revert "Driver: Objective-C should respect -fno-exceptions" 2014-12-09 00:12:30 +00:00
fast-math.c Add a missing pipe in the test from r197896 2013-12-23 08:50:43 +00:00
fatal-warnings.c Convert MC command line flag for fatal assembler warnings into a proper 2014-08-26 18:40:25 +00:00
fcomment-block-commands.c
flags.c
fortran.f95 Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
fpack-struct.c
fparse-all-comments.c
frame-pointer-elim.c
frame-pointer.c [mips] Enable frame-pointer elimination for -O1 and above. 2013-10-16 17:13:08 +00:00
freebsd-mips-as.c [Driver][Mips] Fix test cases - make ABI name and target triple consistent. 2014-06-30 08:10:01 +00:00
freebsd.c Revert "Use the integrated assembler by default on 32-bit PowerPC and SPARC" 2015-01-05 23:31:42 +00:00
freebsd.cpp Rename test.cc files to test.cpp. 2014-12-22 18:13:07 +00:00
fsanitize-blacklist.c
fsanitize.c Reimplement -fsanitize-recover family of flags. 2015-01-12 22:39:12 +00:00
function-sections.c Fix handling of -fno-function-sections, -fno-data-sections in clang driver. 2014-02-03 11:11:37 +00:00
fuse-ld.c clang/test/Driver/fuse-ld.c: Really fix to match dos path. 2014-06-27 01:32:59 +00:00
gcc-toolchain.cpp
gcc-version-debug.c Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
gcc_forward.c Revert r211866, r211895 and r211995, "Driver: use GNU::Link for the Generic_GCC toolchain". It broke users of Generic_GCC, cygwin and mingw32. 2014-06-29 16:00:11 +00:00
gfortran.f90 Add support to the Clang driver for forwarding all of gfortran's flags 2013-10-17 03:28:24 +00:00
gnu-runtime.m
gold-lto.c Pass -pie to linker when generating executable on Android 2014-04-29 10:25:20 +00:00
hexagon-toolchain-elf.c Fix clash of gcc toolchains in hexagon driver regression tests. 2014-11-07 17:48:03 +00:00
hexagon-toolchain.c Fix clash of gcc toolchains in hexagon driver regression tests. 2014-11-07 17:48:03 +00:00
ident_md.c IR: Make metadata typeless in assembly, clang side 2014-12-15 19:10:08 +00:00
immediate-options.c
implicit-function-as-error.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
index-header-map.c
inhibit-downstream-commands.c
instrprof-ld.c [Profile] Always build profile runtime library with -fPIC. 2014-11-14 00:16:26 +00:00
integrated-as.c Remove unused diagnostic + dead test for it. 2014-03-31 16:55:01 +00:00
integrated-as.s Pass -gdwarf-N options to integrated assembler 2014-05-19 13:39:13 +00:00
ios-simulator-arcruntime.c
krait-cpu.c Added support for mcpu krait 2013-12-06 22:43:17 +00:00
le32-toolchain.c
le32-unknown-nacl.cpp Make test/Driver hermetic 2014-09-14 23:42:15 +00:00
le64-unknown-unknown.cpp Make test/Driver hermetic 2014-09-14 23:42:15 +00:00
linker-opts.c Support LIBRARY_PATH on all Darwin targets. 2014-07-29 20:17:52 +00:00
linux-as.c Revert changes in r218863, r218864 2014-10-03 09:11:41 +00:00
linux-header-search.cpp Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
linux-ld.c Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
lit.local.cfg Move remaining %clang_cc1 tests out of test/Driver 2013-11-16 06:20:17 +00:00
lto.c Fix default image name to 'a.exe' on Windows, instead 'a.out'. 2015-01-04 13:48:30 +00:00
m_and_mm.c
macho-embedded.c MachO: perform ARM ABI detection even for non-Darwin triples. 2014-05-22 12:54:30 +00:00
masm.c Make this test target independent. 2014-05-13 20:16:43 +00:00
mg.c
mips-abi.c [Driver][Mips] Support one more MIPS CPU name - octeon. 2014-07-04 12:37:04 +00:00
mips-as.c Partially revert r215204 - [mips] Add -mabicalls/-mno-abicalls to the driver 2014-08-08 18:39:01 +00:00
mips-cs.cpp [Driver] Support -muclibc / -mglibc command line options for a couple 2014-08-13 14:34:14 +00:00
mips-eleb.c [mips] Correct the invocation of GAS in several cases. 2014-07-16 11:52:23 +00:00
mips-features.c [mips] Invert the abicalls feature bit to be noabicalls so that it's possible for -mno-abicalls to take effect. 2014-08-08 15:47:17 +00:00
mips-float.c [Mips] Do not adjust float-abi flags in case of MIPS16 mode. This code 2013-11-19 12:22:38 +00:00
mips-fsf.cpp [Driver] Support -muclibc / -mglibc command line options for a couple 2014-08-13 14:34:14 +00:00
mips-img.cpp [mips][mips64r6] Add support for mips-img-linux-gnu GCC toolchains 2014-07-10 14:40:57 +00:00
mips-integrated-as.s [mips] Invert the abicalls feature bit to be noabicalls so that it's possible for -mno-abicalls to take effect. 2014-08-08 15:47:17 +00:00
mips-reduced-toolchain.cpp Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
mipsel-nacl-defines.cpp
mno-global-merge.c Revert new test from 213993. 2014-07-26 00:51:28 +00:00
modules.m Remove "REQUIRES:shell" from tests. They work for me. 2014-11-04 13:41:33 +00:00
modules.mm Enable both C and C++ modules with -fmodules, by switching -fcxx-modules to 2014-09-30 23:10:19 +00:00
montavista-gcc-toolchain.c
ms-inline-asm.c
msc-version.c Driver: bifurcate extended and basic MSC versioning 2014-07-16 03:13:50 +00:00
msvc_forward.c Fix forwarding -l to MSVC's link.exe 2014-09-16 19:22:00 +00:00
netbsd.c Use the big endian emulations for NetBSD/arm in EB mode. 2014-08-14 19:12:41 +00:00
netbsd.cpp For NetBSD, use the same settings for PPC64 as for PPC when it comes to 2014-08-13 14:17:32 +00:00
no-canonical-prefixes.c Do not rely on bin/ path prefix in tests. 2014-08-17 19:11:18 +00:00
no-integrated-as-win.c Tidy up the no-external-assembler diag 2013-11-22 08:27:46 +00:00
no-integrated-as.c clang: forward -no-integrated-as from the driver 2014-02-22 23:37:58 +00:00
no-objc-arr.m
no-objc-default-synthesize-properties.m
no-sibling-calls.c
nodefaultlib.c
noexecstack.c Use -target instead of triple and use FileCheck. 2013-10-27 13:59:51 +00:00
noinline.c
nostdincxx.cpp check-clang: Introduce the feature "non-ms-sdk" to suppress Driver/nostdincxx.cpp on msvc. 2014-02-16 10:15:57 +00:00
nostdlib.c
nostdlibinc.c
nozlibcompress.c Fix up compression related test cases 2014-04-01 00:27:28 +00:00
objc++-cpp-output.mm
objc-cpp-output.m
openbsd.c Set the default ISA for OpenBSD/mips64 to MIPS III. 2015-01-06 02:53:17 +00:00
option-aliases.c
output-file-cleanup.c
output-file-is-dir.c
parse-progname.c Try to fix parse-progname.c test on Darwin 2014-10-17 20:55:54 +00:00
pch-deps.c [Modules] Emit the module file paths as dependencies of the PCH when we are building one. 2014-03-14 03:07:38 +00:00
phases.c Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
pic.c Fix clash of gcc toolchains in driver regression tests. 2015-01-05 17:07:42 +00:00
ppc-abi.c [PowerPC] Support ELFv1/ELFv2 ABI selection via -mabi= option 2014-07-28 13:17:52 +00:00
ppc-features.cpp [PowerPC] Add support for -mcmpb 2015-01-06 23:06:41 +00:00
prefixed-tools.c Fix Driver tests that I broke on Windows in r214924 2014-08-05 22:39:07 +00:00
preprocess-multiple.c Add driver test for multiple preprocessor inputs 2014-02-24 08:17:02 +00:00
preprocessor.c
pth.c
qa_override.c Remove support for the QA_OVERRIDE_GCC3_OPTIONS environment variable. 2014-02-23 00:11:56 +00:00
r600-mcpu.cl R600: Handle amdgcn triple 2015-01-06 20:34:47 +00:00
redundant-args.c
redzone.c
response-file.c Teach Clang how to use response files when calling other tools 2014-09-15 17:45:39 +00:00
retain-comments-from-system-headers.c
rewrite-legacy-objc.m Revert "Driver: Objective-C should respect -fno-exceptions" 2014-12-09 00:12:30 +00:00
rewrite-map-in-diagnostics.c Suppress clang/test/Driver/rewrite-map-in-diagnostics.c on win32 for now. This doesn't fail on "env clang". Investigating. 2015-01-12 11:39:04 +00:00
rewrite-objc.m Introduce f[no-]max-unknown-pointer-align=[number] option 2014-08-05 18:37:48 +00:00
sanitize_unwind_tables.c Enable generation of unwind tables when building with sanitizers. 2014-02-14 08:56:25 +00:00
sanitizer-ld.c Revert r218541 - Don't link in sanitizer runtimes if -nostdlib/-nodefaultlibs is provided. 2014-10-23 00:46:10 +00:00
save-temps.c Reapply "Change -save-temps to emit unoptimized bitcode files." 2014-12-21 07:00:00 +00:00
sparc-float.c Handle SPARC float command line parameters for SPARCv9. 2014-08-19 21:50:15 +00:00
split-debug.c clang/test/Driver: Some tests don't REQUIRE asserts any more. Remove them. 2014-10-12 06:44:05 +00:00
split-debug.s clang/test/Driver: Some tests don't REQUIRE asserts any more. Remove them. 2014-10-12 06:44:05 +00:00
stack-protector.c Test fixes and improvements. 2014-06-01 13:45:09 +00:00
stackrealign.c
std.c Add driver flags -ftrigraphs, -fno-trigraphs. 2014-12-23 22:32:37 +00:00
std.cpp Add -std=c++1z flag for C++17 features. 2014-06-16 15:16:56 +00:00
symbol-rewriter.c Driver: begin threading frontend support for SymbolRewriter 2015-01-09 05:10:20 +00:00
sysroot-flags.c
sysroot.c
systemz-as.s [SystemZ] Address review comments for r219679 2014-10-14 16:46:45 +00:00
systemz-march.c
target-as.s
target-triple-deployment.c ARM64: initial clang support commit. 2014-03-29 15:09:45 +00:00
target.c Don't use the gcc driver for assembling. 2013-11-23 16:40:57 +00:00
thread-model.c CFE Knob for: Add a thread-model knob for lowering atomics on baremetal & single threaded systems 2014-10-03 21:57:44 +00:00
tsan.c SanitizerArgs: add ability to filter/diagnose unsupported sanitizers. 2013-11-01 18:16:25 +00:00
unknown-arg.c
unknown-gcc-arch.c Revert "Use the integrated assembler by default on 32-bit PowerPC and SPARC" 2015-01-05 23:31:42 +00:00
verify_pch.m Add a CC1 option -verify-pch 2014-02-05 22:21:15 +00:00
vfsoverlay.c Add a driver option -ivfsoverlay 2014-02-25 18:23:47 +00:00
via-file-asm.c Fix via-file-asm test failure on windows 2013-12-10 00:54:30 +00:00
visibility.cpp Fix broken CHECK lines 2014-02-16 07:29:41 +00:00
warning-options.cpp Re-apply "Revert r166370 and r166540 now that Xcode 4.6 has been available for a while." 2014-12-02 05:17:21 +00:00
warning-options_pedantic.cpp
windows-arm-minimal-arch.c Driver: add target definition for Windows on ARM 2014-04-04 20:31:19 +00:00
windows-cross.c Driver: use the canonical library prefix on Windows 2014-12-30 18:55:37 +00:00
windows-wildcard-expansion.c Expand the wildcard expansion test to also cover '?' 2014-07-16 16:14:09 +00:00
woa-restrict-it.c Driver: force restricted IT blocks for Windows on ARM 2014-05-18 06:42:02 +00:00
working-directory-and-abs.c
working-directory.c
x86-march.c Re-work the Clang system for classifying Intel x86 CPUs to use their 2014-12-09 14:50:25 +00:00
x86_64-nacl-defines.cpp
x86_features.c
x86_m16.c Add -m16 option for using x86-*-*-code16 triple 2014-01-21 17:19:44 +00:00
xcore-opts.c XCore target: fix handling of -g0 flag 2014-05-02 09:33:25 +00:00