https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81720
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |WONTFIX --- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- Bare metal target compilers should still respect the standard, which is quite clear that dereferencing NULL is undefined. Some users of the compiler expect this behaviour. It's not about to change. You have an option you can use, so use it.