On Jul 24, 2018, Tom de Vries <tdevr...@suse.de> wrote: > There's a design principle in GCC that code generation and debug generation > are independent. This guarantees that if you're encountering a problem in an > application without debug info, you can recompile it with -g and be certain > that you can reproduce the same problem, and use the debug info to debug the > problem. This invariant is enforced by bootstrap-debug. The fdebug-nops > breaks this invariant
I thought of a way to not break it: enable the debug info generation machinery, including VTA and SFN, but discard those only at the very end if -g is not enabled. The downside is that it would likely slow -Og down significantly, but who uses it without -g anyway? -- Alexandre Oliva, freedom fighter https://FSFLA.org/blogs/lxo Be the change, be Free! FSF Latin America board member GNU Toolchain Engineer Free Software Evangelist