https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62225
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Why doesn't -g always enable -fvar-tracking by default? It's currently only > enabled if you specify both -g and -O. The full answer is in the gcc-patches@ archives. The short answer is that it essentially doesn't work at -O0.