https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114855
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:634eae5ec3f3af2c4f6221d3ed2cf78d7f5c47f0 commit r15-2312-g634eae5ec3f3af2c4f6221d3ed2cf78d7f5c47f0 Author: Sam James <s...@gentoo.org> Date: Tue Jul 23 15:06:10 2024 +0100 doc: Document -O1 as the preferred level for large machine-generated code At -O1, the intention is that we compile things in a "reasonable" amount of time (ditto memory use). In particular, we try to especially avoid optimizations which scale poorly on pathological cases, as is the case for large machine-generated code. Recommend -O1 for large machine-generated code, as has been informally done on bugs for a while now. This applies (broadly speaking) for both large machine-generated functions but also to a lesser extent repetitive small-but-still-not-tiny functions from a generator program. gcc/ChangeLog: PR middle-end/114855 * doc/invoke.texi (Optimize options): Mention machine-generated code for -O1.