https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59658
sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #3 from sandra at gcc dot gnu.org --- I've been poking at this issue. I note that we don't document exactly which optimization flags are completely ignored at -O0 due to the abbreviated pass list, either, just: Most optimizations are only enabled if an ‘-O’ level is set on the command line. Otherwise they are disabled, even if individual optimization flags are specified. I filed PR 88024 to suggest a warning for such ignored options and some code changes that would make it easier to document which ones they are. Meanwhile I will document the -O1 options that are specifically disabled at -Og and add wording about the skipped passes for -Og similar to that for -O.