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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>a pointer that goes to 0 after decrement is still considered true.

Yes a pointer is never a null pointer if it is decremented and it was a valid
pointer to begin with.

Use -fno-delete-null-pointer-checks if you want to disable this optimization.

Reply via email to