[Bug c/96317] [8/9/10/11] Int compare optimizations make some errors

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 25 09:17:48 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96317

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Use -fwrapv or unsigned integers as signed signed integer overflow is
undefined. Use -fsanitizer=undefined will detect this at runtime.


More information about the Gcc-bugs mailing list