[PATCH] D11765: [sanitizer] Enable tsan for aarch64
Adhemerval Zanella
adhemerval.zanella at linaro.org
Wed Aug 5 09:10:28 PDT 2015
zatrazz created this revision.
zatrazz added reviewers: rengolin, t.p.northover, aemerson, pcc.
zatrazz added a subscriber: cfe-commits.
Herald added subscribers: rengolin, aemerson.
This patch enables the -fsanitizer=thread option for Linux/aarch64.
http://reviews.llvm.org/D11765
Files:
lib/Driver/ToolChains.cpp
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -3626,10 +3626,10 @@
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11765.31356.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150805/22cc54fc/attachment.bin>
More information about the cfe-commits
mailing list