[Bug tree-optimization/98467] gcc optimizes tapping code away

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 29 16:03:02 GMT 2020


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
-fdelete-null-pointer-checks is generally an option that tells whether it is
possible to have objects at address 0 (-fno-delete-null-pointer-checks) or not.
So the use above seems to be correct.
Anything can happen on UB and NULL pointer dereference is UB, so I don't see
why you expect anything in particular.


More information about the Gcc-bugs mailing list