From 893be8d10f7efb078042b4ffdf88a8c35a5f27bf Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Thu, 13 Jul 2023 17:32:11 +0800 Subject: [PATCH] Replace cpu modifier flags `crypto` should be replace with `aes`. See https://arm-software.github.io/acle/main/acle.html#cryptographic-extensions Signed-off-by: Jerry Yu --- library/aesce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/aesce.c b/library/aesce.c index 65c79f73fe..ed3cca11d5 100644 --- a/library/aesce.c +++ b/library/aesce.c @@ -78,11 +78,11 @@ # if __ARMCOMPILER_VERSION <= 6090000 # error "Must use minimum -march=armv8-a+crypto for MBEDTLS_AESCE_C" # else -# pragma clang attribute push (__attribute__((target("crypto,aes"))), apply_to=function) +# pragma clang attribute push (__attribute__((target("aes"))), apply_to=function) # define MBEDTLS_POP_TARGET_PRAGMA # endif # elif defined(__clang__) -# pragma clang attribute push (__attribute__((target("crypto"))), apply_to=function) +# pragma clang attribute push (__attribute__((target("aes"))), apply_to=function) # define MBEDTLS_POP_TARGET_PRAGMA # elif defined(__GNUC__) # pragma GCC push_options