https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90141
Bug ID: 90141 Summary: Missing test case for ambiguous -gdwarf command line options Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- From opts.c: case OPT_gdwarf: if (arg && strlen (arg) != 0) { error_at (loc, "%<-gdwarf%s%> is ambiguous; " "use %<-gdwarf-%s%> for DWARF version " "or %<-gdwarf%> %<-g%s%> for debug level", arg, arg, arg); break; } else value = opts->x_dwarf_version; This diagnostic looks wrong. It is probably missing the = between -gdwarf and %s. Since there is no test case for this invocation, I can only guess that it is wrong.