From 2f384c82a5b145f904806e487306b222edf56e1c Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Thu, 15 Jan 2026 15:22:54 +0000 Subject: [PATCH] built-in drivers(aesce): Fixed clang arm intrinsics for verions < 7 Signed-off-by: Minos Galanakis --- library/aesce.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/aesce.c b/library/aesce.c index 517ccf4a1b..06a8bdc0ac 100644 --- a/library/aesce.c +++ b/library/aesce.c @@ -88,7 +88,11 @@ # define MBEDTLS_POP_TARGET_PRAGMA # endif # elif defined(__clang__) -# pragma clang attribute push (__attribute__((target("aes"))), apply_to=function) +# if __clang_major__ < 7 +# pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function) +# else +# pragma clang attribute push (__attribute__((target("aes"))), apply_to=function) +# endif # define MBEDTLS_POP_TARGET_PRAGMA # elif defined(__GNUC__) # pragma GCC push_options