https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106333
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There was -Wstrict-overflow but many of those warnings are gone in recent versions of the compiler and it was way too noisy. -fsanitize=undefined should be able to detect the problem at runtime instead.