https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103870
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Use either -fwrapv or have the math done as unsigned int so you can detect
signed integer overflow (which is undefined). You could also use builtins too.
