https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117009
Bug ID: 117009 Summary: Wall should be in common.opt rather than the language specific .opt Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: internal-improvement Severity: normal Priority: P3 Component: middle-end Assignee: pinskia at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- While helping jemarch (on IRC) with language specific option handling, it was noticed that Wall is defined in some .opt files. It should be in defined in the common.opt and added to the language .opt iff there needs some special handling non EnabledBy for it. Right now it is in: c-family/c.opt:Wall d/lang.opt:Wall fortran/lang.opt:Wall go/lang.opt:Wall m2/lang.opt:Wall rust/lang.opt:Wall But it should only be in c-family/c.opt, d/lang.opt and m2/lang.opt: c-family/c-opts.cc: case OPT_Wall: d/d-lang.cc: case OPT_Wall: m2/gm2-lang.cc: case OPT_Wall: Note Wextra does not need to be in none of these either: c-family/c.opt:Wextra d/lang.opt:Wextra fortran/lang.opt:Wextra Because there is no special handling of OPT_Wextra.