From 0ca89eba0561822788088d3a18a373576aedc9bb Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Tue, 31 Dec 2024 08:57:06 -0500 Subject: [PATCH] alignas(16) unsupported w/ GCC 7.2 for ARM32 --- crypto/cipher_extra/aead_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/cipher_extra/aead_test.cc b/crypto/cipher_extra/aead_test.cc index 2aca2b8210e..b0d76f66a79 100644 --- a/crypto/cipher_extra/aead_test.cc +++ b/crypto/cipher_extra/aead_test.cc @@ -831,6 +831,7 @@ TEST_P(PerAEADTest, AliasedBuffers) { EXPECT_EQ(Bytes(kPlaintext), Bytes(in, out_len)); } +#if !defined(__BIGGEST_ALIGNMENT__) || __BIGGEST_ALIGNMENT__ >= 16 TEST_P(PerAEADTest, UnalignedInput) { alignas(16) uint8_t key[EVP_AEAD_MAX_KEY_LENGTH + 1]; alignas(16) uint8_t nonce[EVP_AEAD_MAX_NONCE_LENGTH + 1]; @@ -874,6 +875,7 @@ TEST_P(PerAEADTest, UnalignedInput) { EXPECT_EQ(Bytes(plaintext + 1, sizeof(plaintext) - 1), Bytes(out + 1, out_len)); } +#endif // !defined(__BIGGEST_ALIGNMENT__) || __BIGGEST_ALIGNMENT__ >= 16 TEST_P(PerAEADTest, Overflow) { uint8_t key[EVP_AEAD_MAX_KEY_LENGTH];