Merge pull request #10177 from gilles-peskine-arm/union-initialization-gcc15-basic-fix-dev

Test with GCC 15 with sloppy union initialization
This commit is contained in:
Manuel Pégourié-Gonnard 2025-05-20 09:56:51 +00:00 committed by GitHub
commit 66c6aaacf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -93,10 +93,7 @@ component_test_gcc15_drivers_opt () {
scripts/config.py full
loc_cflags="$ASAN_CFLAGS -DPSA_CRYPTO_DRIVER_TEST -DMBEDTLS_CONFIG_ADJUST_TEST_ACCELERATORS"
loc_cflags="${loc_cflags} -I../framework/tests/include -O2"
# Until https://github.com/Mbed-TLS/mbedtls/issues/9814 is fixed,
# disable the new problematic optimization.
loc_cflags="${loc_cflags} -fzero-init-padding-bits=unions"
# Also allow a warning that we don't yet comply to.
# Allow a warning that we don't yet comply to.
# https://github.com/Mbed-TLS/mbedtls/issues/9944
loc_cflags="${loc_cflags} -Wno-error=unterminated-string-initialization"

@ -1 +1 @@
Subproject commit dc6c60204bbf841f0b118840813e561a399e4d73
Subproject commit 35ae18cf891d3675584da41f7e830f1de5f87f07