From 6570686dc178b801b287e0ab155aaf691bbcb1eb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 17 Feb 2022 15:11:28 +0100 Subject: m + use optimisations '(adds auto-executed function: libar2_init)' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libar2_erase.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libar2_erase.c') diff --git a/libar2_erase.c b/libar2_erase.c index 0e3174e..585d7d9 100644 --- a/libar2_erase.c +++ b/libar2_erase.c @@ -6,19 +6,13 @@ #elif defined(explicit_bzero) || defined(__OpenBSD__) #elif defined(explicit_memset) #else -# if defined(__GNUC__) -__attribute__((visibility("hidden"))) -# endif +LIBAR2_HIDDEN__ extern void *(*const volatile libar2_internal_explicit_memset__)(void *, int, size_t); void *(*const volatile libar2_internal_explicit_memset__)(void *, int, size_t) = &memset; #endif -/* libar2_internal_erase__ is intended for the test code to use, because it replaces `libar2_erase` */ -# if defined(__GNUC__) -__attribute__((visibility("hidden"))) -# endif -void libar2_internal_erase__(volatile void *mem, size_t size); +/* libar2_internal_erase__ is intended for the test code to use, because it replaces `libar2_erase` */ #if defined(__clang__) /* before __GNUC__ because that is also set in clang */ # if __has_attribute(optnone) __attribute__((optnone)) -- cgit v1.2.3-70-g09d2