https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111556
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The not dereferencing NULL environ is PR111413 and has been fixed already. That is something different from what is reported here, and as I said, there is nothing that can be done about it except "don't do it".