https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96337
--- Comment #13 from andysem at mail dot ru --- I think, this inliner change needs to be reverted. People expect -O2 to produce decently optimized binaries, and starting with gcc 10.x it doesn't deliver. -O3 traditionally enabled optimizations that may or may not improve performance (and historically, sometimes even break code), so most projects don't use it. If there needs to be an optimization mode that prioritizes compilation speed then let that be a separate mode, e.g. -O1.