]> granicus.if.org Git - clang/commit
Enable the SafeStack sanitizer on CloudABI by default.
authorEd Schouten <ed@nuxi.nl>
Tue, 29 Mar 2016 21:13:53 +0000 (21:13 +0000)
committerEd Schouten <ed@nuxi.nl>
Tue, 29 Mar 2016 21:13:53 +0000 (21:13 +0000)
commitcb034d1d6e6c6787c61e37d6f7c4f426c7c11d75
treea2066e8e1772899932ae90c48fa259cab9b95f9f
parentf065c436a5b5fd26cdd5392a4a5957b2bb9bb3b4
Enable the SafeStack sanitizer on CloudABI by default.

Over the last month we've been testing SafeStack extensively. As far as
we know, it works perfectly fine. That why I'd like to see us having
this enabled by default for CloudABI.

This change introduces a getDefaultSanitizers() function that toolchains
can use to specify which sanitizers are enabled by default. Once all
flags are processed, only flags that had no -fno-sanitize overrides are
enabled.

Extend the thests for CloudABI to test both the default case and the
case in which we want to explicitly disable SafeStack.

Reviewed by: eugenis, pcc
Differential Revision: http://reviews.llvm.org/D18505

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264787 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/ToolChain.h
lib/Driver/SanitizerArgs.cpp
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
test/Driver/cloudabi.c
test/Driver/cloudabi.cpp