From 92fc538a22b94fa8e8ef47935ccc69be603a5bf7 Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Thu, 16 Feb 2023 11:17:11 +0800 Subject: [PATCH] Add attribute popup Signed-off-by: Jerry Yu --- library/sha256.c | 5 +++++ library/sha512.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/library/sha256.c b/library/sha256.c index 4321765519..49a233d63f 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -380,6 +380,11 @@ int mbedtls_internal_sha256_process_a64_crypto(mbedtls_sha256_context *ctx, SHA256_BLOCK_SIZE) ? 0 : -1; } +#if defined(MBEDTLS_POP_TARGET_PRAGMA) +#pragma clang attribute pop +#undef MBEDTLS_POP_TARGET_PRAGMA +#endif + #endif /* MBEDTLS_SHA256_USE_A64_CRYPTO_IF_PRESENT || MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY */ diff --git a/library/sha512.c b/library/sha512.c index fec974a36b..827c08f34f 100644 --- a/library/sha512.c +++ b/library/sha512.c @@ -566,6 +566,11 @@ int mbedtls_internal_sha512_process_a64_crypto(mbedtls_sha512_context *ctx, SHA512_BLOCK_SIZE) ? 0 : -1; } +#if defined(MBEDTLS_POP_TARGET_PRAGMA) +#pragma clang attribute pop +#undef MBEDTLS_POP_TARGET_PRAGMA +#endif + #endif /* MBEDTLS_SHA512_USE_A64_CRYPTO_IF_PRESENT || MBEDTLS_SHA512_USE_A64_CRYPTO_ONLY */