https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120376
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- -fno-alloc-dce seems to work. Where did you see =0 documented? I only see https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fno-malloc-dce mentioning 1 and 2.