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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=79265,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=98109

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A couple of things:
* -Wnull-dereference is not enabled with -Wall I suspect because it has many
false positives.
* -Wnull-dereference requires constant propagation which is not enabled at -O0
so the warning does not happen.
* -fsanitize=undefined implies -fno-delete-null-pointer-checks which disables
-Wnull-dereference as -fno-delete-null-pointer-checks implies null pointers are
valid (comment #1 explains more there)
* See also PR79265 and PR98109

Reply via email to