https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100473
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > I think we've never claimed that -O2 stands for -O1 + specific options, > similarly to how -O1 certainly is not -O0 + lots of options (even much more > different, because if (optimize) is very common and is used in gating tests > of whole pass sets. From https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gcc/Optimize-Options.html#Optimize-Options : Not all optimizations are controlled directly by a flag. Only optimizations that have a flag are listed in this section.