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

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

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The code is undefined if NULL is passed and that is why the branch is removed. 
If you don't want this optimization then use -fno-delete-null-pointer-checks

Reply via email to