https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102189
Bug ID: 102189 Summary: error: unrecognized command-line option '-fno-[...]'; did you mean '-ftree-[...]'? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- For example: xgcc: error: unrecognized command-line option ‘-fno-loop-vectorize’; did you mean ‘-ftree-loop-vectorize’? xgcc: error: unrecognized command-line option ‘-fno-slp-vectorize’; did you mean ‘-ftree-slp-vectorize’? See how the 'no-' prefix gets lost. If, for example, '-fno-loop-vectorize' is specified, it would be more useful to suggest '-fno-tree-loop-vectorize' (again with '-fno-[...]' prefix) instead of '-ftree-loop-vectorize'. Maybe we can give the original 'no-' prefix a higher weight or something?