3 ms·
Never use -Og for debug builds. It doesn't work. Use -O0. If you try to debug a -Og built program you will not be able to print locals because the optimizer
by ErikCorry 4y ago
Never use -Og for debug builds. It doesn't work. Use -O0.
If you try to debug a -Og built program you will not be able to print locals because the optimizer has removed them. People blame their debugger.
It's my humble opinion that -Og should be an alias for -O0. Broken for decades it's time to stop pretending it works.