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

2020-07-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96317 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #3

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

2020-07-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96317 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

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

2020-07-25 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96317 --- Comment #1 from Andrew Pinski --- Use -fwrapv or unsigned integers as signed signed integer overflow is undefined. Use -fsanitizer=undefined will detect this at runtime.