]> granicus.if.org Git - clang/commit
Add a flag -fthread-sanitizer.
authorKostya Serebryany <kcc@google.com>
Thu, 1 Mar 2012 22:27:08 +0000 (22:27 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 1 Mar 2012 22:27:08 +0000 (22:27 +0000)
commit3c93122d31924d6d4a6265f36a0c98a164002da6
treeb46cc79596961be795622dbbe458a83221e81bf7
parent32ad2ee2618745ce3da51c2ae066ed5f21157c07
Add a flag -fthread-sanitizer.
This flag enables ThreadSanitizer instrumentation committed to llvm as r150423.
The patch includes one test for -fthread-sanitizer and one similar test for -faddress-sanitizer.
This patch does not modify the linker flags (as we do it for -faddress-sanitizer) because the run-time library is not yet
committed and it's structure in compiler-rt is not 100% clear.
The users manual wil be changed in a separate commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151846 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/CodeGen/BackendUtil.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/asan.c [new file with mode: 0644]
test/Driver/tsan.c [new file with mode: 0644]