https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80528
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, if the user knows that the pointer is usually NULL, then if (p) free (p); is a significant optimization over free (p). So as code size optimization, removing it is fine, but otherwise, it isn't at all clear.