mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
Old GCC versions hit a performance problem with test_suite_pkwrite "Private keey write check EC" tests when building with Asan+UBSan and -O3: those tests take more than 100x time than normal, with test_suite_pkwrite taking >3h on the CI. Observed with GCC 5.4 on Ubuntu 16.04 x86_64 and GCC 6.5 on Ubuntu 18.04 x86_64. GCC 7.5 and above on Ubuntu 18.04 appear fine. To avoid the performance problem, use -O2 instead of -O3 in then "Asan" build type with GCC. It doesn't slow down much even with modern compiler versions. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
22 KiB
22 KiB