https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114191
Bug ID: 114191 Summary: Flags "Warning" and "Target" don't mix well in target.opt files Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- In an .opt file, a backend can define target-specific diagnostic options, for example gcc/config/avr/avr.opt has: Wmisspelled-isr Warning C C++ Var(avr_warn_misspelled_isr) Init(1) Warn if the ISR is misspelled, ... This is a "Target" option however (so it should be listed with --help=target, which it currently is not). However, specifying the "Target" flag in avr.opt makes the option no more recognizable: $ avr-gcc main.c -c -Wall -Wmisspelled-isr cc1: error: unrecognized command-line option '-Wmisspelled-isr' I can reproduce this for target avr, but it likely affects all other targets as well. Set the component to "other". As it appears, there is no bugzilla component for such internal problems.