projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e66f3
)
[AArch64] Enable thread sanitizer on clang
author
Renato Golin
<renato.golin@linaro.org>
Wed, 5 Aug 2015 18:42:41 +0000
(18:42 +0000)
committer
Renato Golin
<renato.golin@linaro.org>
Wed, 5 Aug 2015 18:42:41 +0000
(18:42 +0000)
With this option, clang can use -fsanitize=thread on AArch64.
Patch by Adhemerval Zanella.
llvm-svn: 244091
clang/lib/Driver/ToolChains.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Driver/ToolChains.cpp
b/clang/lib/Driver/ToolChains.cpp
index
8defd5b
..
1e27d0a
100644
(file)
--- a/
clang/lib/Driver/ToolChains.cpp
+++ b/
clang/lib/Driver/ToolChains.cpp
@@
-3626,10
+3626,10
@@
SanitizerMask Linux::getSupportedSanitizers() const {
Res |= SanitizerKind::Vptr;
if (IsX86_64 || IsMIPS64 || IsAArch64)
Res |= SanitizerKind::DataFlow;
- if (IsX86_64 || IsMIPS64)
{
+ if (IsX86_64 || IsMIPS64)
Res |= SanitizerKind::Leak;
+ if (IsX86_64 || IsMIPS64 || IsAArch64)
Res |= SanitizerKind::Thread;
- }
if (IsX86_64 || IsMIPS64 || IsPowerPC64)
Res |= SanitizerKind::Memory;
if (IsX86 || IsX86_64) {