This is an archive of the discontinued LLVM Phabricator instance.

Allow to disable all sanitizers with "-fno-sanitize=all" option.
ClosedPublic

Authored by samsonov on Dec 18 2014, 7:09 PM.

Details

Summary

This patch adds "all" sanitizer group. A shortcut "-fno-sanitize=all"
can be used to disable all sanitizers for a given source file.

"-fsanitize=all" option makes no sense, and will produce an error.

This group can also be useful when we add "-fsanitize-recover=<list>"
options (patch in http://reviews.llvm.org/D6302), as it would allow
to conveniently enable/disable recovery for all specified sanitizers.

Diff Detail

Repository
rL LLVM

Event Timeline

samsonov updated this revision to Diff 17479.Dec 18 2014, 7:09 PM
samsonov retitled this revision from to Allow to disable all sanitizers with "-fno-sanitize=all" option..
samsonov updated this object.
samsonov edited the test plan for this revision. (Show Details)
samsonov added reviewers: kcc, rsmith.
samsonov added a subscriber: Unknown Object (MLST).
rsmith accepted this revision.Dec 18 2014, 7:22 PM
rsmith edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 18 2014, 7:22 PM
This revision was automatically updated to reflect the committed changes.