Go to file
Alexey Samsonov 1b64854574 [ASan] Restrict the set of flags overriden at activation.
Summary:
Change the way ASan flag parsing is performed at activation: instead
of overwriting all ASan and common flags from the activation string,
ASan will now only override a handful of whitelisted flags.
This is a first step towards making runtime flags immutable after
initialization. I plan to re-factor the activation stragegy to
the following one:

  - Parse commandline flags. Override the defaults from compile
    definition, env var, etc. Flags are immutable at this point.
  - Initiailize the runtime from commandline flags.
  - If ASan needs to be started deactivated, stash the runtime
    state in "asan_deactivated_flags" and deactivate the runtime.
  - When ASan is activated, override "asan_deactivated_flags" with
    activation flags, and use it to re-activate the runtime.

Test Plan: regression test suite

Reviewers: eugenis, kcc

Subscribers: llvm-commits

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

llvm-svn: 224601
2014-12-19 19:16:07 +00:00
clang Allow to disable all sanitizers with "-fno-sanitize=all" option. 2014-12-19 18:41:43 +00:00
clang-tools-extra Fixed a typo in a comment. NFC. 2014-12-19 15:37:02 +00:00
compiler-rt [ASan] Restrict the set of flags overriden at activation. 2014-12-19 19:16:07 +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 Remove wrong semi-colons 2014-12-19 09:18:23 +00:00
libcxx Re-commit the test for regex that I busted last night - now passes under ASAN 2014-12-16 16:22:43 +00:00
libcxxabi [libcxxabi] Add __cxa_thread_atexit for TLS support on Linux. 2014-12-18 00:03:57 +00:00
lld [macho] -rpath support 2014-12-18 21:33:38 +00:00
lldb Don't generate lldb inline test Makefiles if Makefile already exists. 2014-12-19 18:26:33 +00:00
llgo Test commit 2014-12-19 02:45:48 +00:00
llvm [Hexagon] Adding transfers to and from control registers. 2014-12-19 19:06:32 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly (diagnostics) fix typo in test... 2014-12-19 17:22:46 +00:00