https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118537
--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- A few things to test out first: Is it -fsanitize=address clean? Does -fno-lifetime-dse help? Does -fstack-reuse=none help? What about both together?