r193583 - Add missing attributes [[gnu::no_sanitize_address]] and
Nick Lewycky
nicholas at mxc.ca
Mon Oct 28 20:54:41 PDT 2013
Author: nicholas
Date: Mon Oct 28 22:54:41 2013
New Revision: 193583
URL: http://llvm.org/viewvc/llvm-project?rev=193583&view=rev
Log:
Add missing attributes [[gnu::no_sanitize_address]] and
[[gnu::no_address_safety_analysis]].
Modified:
cfe/trunk/include/clang/Basic/Attr.td
cfe/trunk/test/Parser/cxx0x-attributes.cpp
Modified: cfe/trunk/include/clang/Basic/Attr.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Attr.td?rev=193583&r1=193582&r2=193583&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Attr.td (original)
+++ cfe/trunk/include/clang/Basic/Attr.td Mon Oct 28 22:54:41 2013
@@ -807,7 +807,9 @@ def X86ForceAlignArgPointer : Inheritabl
// Attribute to disable AddressSanitizer (or equivalent) checks.
def NoSanitizeAddress : InheritableAttr {
let Spellings = [GNU<"no_address_safety_analysis">,
- GNU<"no_sanitize_address">];
+ GNU<"no_sanitize_address">,
+ CXX11<"gnu", "no_address_safety_analysis">,
+ CXX11<"gnu", "no_sanitize_address">];
}
// Attribute to disable ThreadSanitizer checks.
Modified: cfe/trunk/test/Parser/cxx0x-attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-attributes.cpp?rev=193583&r1=193582&r2=193583&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx0x-attributes.cpp (original)
+++ cfe/trunk/test/Parser/cxx0x-attributes.cpp Mon Oct 28 22:54:41 2013
@@ -312,3 +312,10 @@ namespace GccConst {
void f(const int *);
void g() { f(f1()); f(f2()); }
}
+
+namespace GccASan {
+ __attribute__((no_address_safety_analysis)) void f1();
+ __attribute__((no_sanitize_address)) void f2();
+ [[gnu::no_address_safety_analysis]] void f3();
+ [[gnu::no_sanitize_address]] void f4();
+}
More information about the cfe-commits
mailing list