https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119823
Bug ID: 119823 Summary: -Q --help=optimizers output is misleading for -O0 + inconsistent docs in the manual Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: documentation Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: sandra at gcc dot gnu.org Target Milestone: --- At optimization levels below -O1 or -Og, the pass manager completely skips most optimization passes regardless of whether the corresponding option for that pass is set. In common.opt many of the corresponding optimization options are specified with Init(1), e.g. -fivopts (PR71094), and the -Q option duly reports that they are enabled at -O0, which they are not. We should fix this. Probably it involves adding some additional flag to common.opt and making the -Q printer do something with it. We've also got a problem that it's hard to sync the manual's lists of options enabled at different levels with reality. It would be great if we could get -Q to produce a list that could be cross-checked with the manual, or for the options processing during GCC build to emit some text that could be inserted directly in the manual.