https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114700
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc's trapv is known not always to work correctly. Try -fsanitize=undefined instead.
pinskia at gcc dot gnu.org via Gcc-bugs Thu, 11 Apr 2024 19:34:48 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114700
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc's trapv is known not always to work correctly. Try -fsanitize=undefined instead.