Go to file
Peter Collingbourne 9881b78b53 Introduce -fsanitize-trap= flag.
This flag controls whether a given sanitizer traps upon detecting
an error. It currently only supports UBSan. The existing flag
-fsanitize-undefined-trap-on-error has been made an alias of
-fsanitize-trap=undefined.

This change also cleans up some awkward behavior around the combination
of -fsanitize-trap=undefined and -fsanitize=undefined. Previously we
would reject command lines containing the combination of these two flags,
as -fsanitize=vptr is not compatible with trapping. This required the
creation of -fsanitize=undefined-trap, which excluded -fsanitize=vptr
(and -fsanitize=function, but this seems like an oversight).

Now, -fsanitize=undefined is an alias for -fsanitize=undefined-trap,
and if -fsanitize-trap=undefined is specified, we treat -fsanitize=vptr
as an "unsupported" flag, which means that we error out if the flag is
specified explicitly, but implicitly disable it if the flag was implied
by -fsanitize=undefined.

Differential Revision: http://reviews.llvm.org/D10464

llvm-svn: 240105
2015-06-18 23:59:22 +00:00
clang Introduce -fsanitize-trap= flag. 2015-06-18 23:59:22 +00:00
clang-tools-extra clang-tidy: Remove an unused private field. NFC 2015-06-18 04:15:04 +00:00
compiler-rt tsan: mark meta shadow as NOHUGEPAGE 2015-06-18 16:57:37 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Delete dead code. NFCI 2015-06-17 23:31:45 +00:00
libcxxabi fallback_malloc: silence conversion warning (NFC) 2015-06-03 17:25:35 +00:00
libunwind Code cleanup: Reindent statements. 2015-05-30 14:00:39 +00:00
lld COFF: Add /nodefaultlib and /merge for .drectve. 2015-06-18 23:22:39 +00:00
lldb Don't link ObjCARCOpts twice. Fixes PR22543 2015-06-18 23:45:51 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm MIR Serialization: Reenable one of the MIRParser tests by reverting r239805. 2015-06-18 22:46:27 +00:00
openmp Have CMake error out on Windows when user wants OMPT support 2015-06-17 15:43:34 +00:00
polly Update external project versions in README.txt 2015-06-18 18:07:06 +00:00