What are optimisations enabled by -Og level in G++?
<p>Official GCC documentation doesn't give a list of optimisations enabled for C++ at the <code>-Og</code> level stating only that selected options would not harm debuggability.</p>

<p>I need to know the list of optimisations, do perform a <em>binary search</em> which particular one cause a bug in the inlined template class constructor call on the <strong>ARM Cortex-M7</strong> (arm-none-eabi) platform. I'd like to disable only the one that prevents our code from working correctly. Is there a list somewhere or an option to ask GCC itself?</p>

<p>Plus that would help to me check if I really see the bug in the compiler, or there is other problem revealed by the optimisations applied in that place. In the former case I need to nail it by minimal working example, and that's not the easy case. The code with <code>-O0</code> works fine.</p>