[Bug c/122462] -fwrapv-pointer suppresses optimization but not -Waddress warning in pointer arithmetic with NULL
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Oct 28 12:31:12 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122462
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think this needs -fno-delete-null-pointer-checks as well to reliably suppress
optimization.
More information about the Gcc-bugs
mailing list