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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Rather than reverting I'd add

fwrapp
Common Report Var(flag_wrapp) Optimization
Assume pointer arithmetic overflow wraps around.

and adjust fstrict-overflow to also enable fwrapp.  Maybe we need to
change that away from an alias and instead add

EnabledBy(fno-strict-overflow)

to both fwrapv and fwrapp.

So yes, I think we probably need a way to enable pointer wrapping and
-fno-strict-overflow should do that.

Reply via email to