On Thu, Oct 26, 2017 at 05:12:40PM +0000, Wilco Dijkstra wrote: > GCC's default optimization level is -O0. Unfortunately unlike other > compilers, > GCC generates extremely inefficient code with -O0. It is almost unusable for > low-level debugging or manual inspection of generated code. So a -O option is > always required for compilation. -Og not only allows for fast compilation, > but > also produces code that is efficient, readable as well as debuggable. > Therefore -Og makes for a much better default setting. > > Any comments? > > 2017-10-26 Wilco Dijkstra <wdijk...@arm.com> > > * opts.c (default_options_optimization): Set default to -Og. > > doc/ > * invoke.texi (-O0) Remove default mention. > (-Og): Add mention of default setting.
This would only severely confuse users. -Og has lots of unresolved issues for debugging experience, and changing the default this way is IMHO extremely undesirable. Jakub