https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108283
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- More over a null pointer is still an invalid pointer in C even if your bare metal target might just happen to have a valid memory address at 0.