[PATCH] Unify clang/llvm attributes for asan/tsan/msan (Clang part)
Kostya Serebryany
kcc at google.com
Fri Feb 22 05:03:36 PST 2013
Hi chandlerc, samsonov,
These are two related changes (one in llvm, one in clang).
LLVM:
- rename address_safety => sanitize_address (the enum value is the same, so we preserve binary compatibility with old bitcode)
- rename thread_safety => sanitize_thread
- rename no_uninitialized_checks -> sanitize_memory
CLANG:
- add __attribute__((no_sanitize_address)) as a synonym for __attribute__((no_address_safety_analysis))
- add __attribute__((no_sanitize_thread))
- add __attribute__((no_sanitize_memory))
for S in address thread memory
If -fsanitize=S is present and __attribute__((no_sanitize_S)) is not
set llvm attribute sanitize_S
http://llvm-reviews.chandlerc.com/D449
Files:
test/CodeGenObjCXX/address-safety-attr.mm
test/CodeGen/address-safety-attr.cpp
test/CodeGen/sanitize-thread-attr.cpp
test/SemaCXX/attr-no-sanitize-address.cpp
test/SemaCXX/attr-no-sanitize-thread.cpp
test/SemaCXX/attr-no-sanitize-memory.cpp
include/clang/Basic/Attr.td
docs/MemorySanitizer.rst
docs/LanguageExtensions.rst
docs/AddressSanitizer.rst
docs/ThreadSanitizer.rst
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaDeclAttr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D449.1.patch
Type: text/x-patch
Size: 20324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130222/79f88ec7/attachment.bin>
More information about the cfe-commits
mailing list