Hmm, but if I need all these workarounds, the promise of -Og is unfulfilled. Nick On Monday, October 11, 2021, 11:40:53 AM PDT, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: On Mon, 11 Oct 2021, 19:08 Xi Ruoyao via Gcc-help, <gcc-help@xxxxxxxxxxx> wrote: > > It's caused by inlining. -fno-inline should help in this case (why - > finline is even in -Og?) Because otherwise most C++ ends up stupidly slow.