From 58168afc8b2328c24137820c5fbe7c9775901944 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 30 May 2023 22:06:48 +0200 Subject: Add some __attribute__((access…)) annotations See https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html for details --- include/fortify-headers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/fortify-headers.h') diff --git a/include/fortify-headers.h b/include/fortify-headers.h index a37cd4a..5a3c6e5 100644 --- a/include/fortify-headers.h +++ b/include/fortify-headers.h @@ -29,4 +29,8 @@ #define __bos(ptr, type) __builtin_object_size (ptr, type) #endif +#if defined __has_attribute && __has_attribute (access) +#define __access(...) __attribute__ ((access (__VA_ARGS__))) +#endif + #endif -- cgit v1.3