[Bug c/103103] Incorrect integer optimization omits x < 0 comparison
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 5 21:10:59 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103103
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Signed integer overflow is undefined and gcc is doing a valid transformation.
Use either unsigned integer arthemaric or -fwrapv.
More information about the Gcc-bugs
mailing list