Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alignas(16) unsupported w/ GCC 7.2 for ARM32 (#2086)
### Issues: * Addresses: CryptoAlg-2718 ### Description of changes: * When targeting arm, GCC 7.2 claims to not support `alignas(16)` in C++ code. ``` ... .../arm-unknown-linux-musleabi/crypto/cipher_extra/aead_test.cc:835:54: error: requested alignment 16 is larger than 8 [-Werror=attributes] alignas(16) uint8_t key[EVP_AEAD_MAX_KEY_LENGTH + 1]; ^ /home/justsmth/workspace/CrossAWS-LC-FIPS/src/CrossAWS-LC-FIPS/build/private/buildroot/arm-unknown-linux-musleabi/crypto/cipher_extra/aead_test.cc:836:58: error: requested alignment 16 is larger than 8 [-Werror=attributes] alignas(16) uint8_t nonce[EVP_AEAD_MAX_NONCE_LENGTH + 1]; ^ /home/justsmth/workspace/CrossAWS-LC-FIPS/src/CrossAWS-LC-FIPS/build/private/buildroot/arm-unknown-linux-musleabi/crypto/cipher_extra/aead_test.cc:837:39: error: requested alignment 16 is larger than 8 [-Werror=attributes] alignas(16) uint8_t plaintext[32 + 1]; ... ``` ### Call-outs: * We also use `alignas(16)` a few places in C code, but the compiler doesn't complain about those. * Compilation of AWS-LC FIPS with this same compiler/target still fails with this change, but for an apparently unrelated reason. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
- Loading branch information