[Bug middle-end/82694] [8 regression] Linux kernel miscompiled since r250765

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 3 12:06:00 GMT 2017


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.


More information about the Gcc-bugs mailing list