+2019-04-01 Martin Liska <mliska@suse.cz>
+
+ PR driver/89861
+ * opt-suggestions.c (option_proposer::build_option_suggestions):
+ Add variant without any argument in order to provide better
+ hints.
+
2019-04-01 Richard Biener <rguenther@suse.de>
PR c/71598
with_arg);
free (with_arg);
}
+
+ /* Add also variant without an option argument. */
+ add_misspelling_candidates (m_option_suggestions, option,
+ opt_text);
}
else
{
"-fsanitize=address"
rather than to "-Wframe-address" (PR driver/69265). */
{
+ /* Add also variant without an option argument. */
+ add_misspelling_candidates (m_option_suggestions, option,
+ opt_text);
+
for (int j = 0; sanitizer_opts[j].name != NULL; ++j)
{
struct cl_option optb;
+2019-04-01 Martin Liska <mliska@suse.cz>
+
+ PR driver/89861
+ * gcc.dg/spellcheck-options-18.c: New test.
+ * gcc.dg/spellcheck-options-19.c: New test.
+ * gcc.dg/spellcheck-options-20.c: New test.
+ * gcc.dg/spellcheck-options-13.c: Adjust expected output.
+ * gcc.dg/completion-2.c: Add one variant with no argument.
+
2019-04-01 Richard Biener <rguenther@suse.de>
PR c/71598
-flto-partition=max
-flto-partition=none
-flto-partition=one
+-flto-partition=
{ dg-end-multiline-output "" } */
/* { dg-do compile } */
/* { dg-options "-fsanitize" } */
-/* { dg-error "unrecognized command line option .-fsanitize..$" "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized command line option '-fsanitize'; did you mean '-fsanitize='?" "" { target *-*-* } 0 } */
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-fprofile-update" } */
+/* { dg-error "unrecognized command line option '-fprofile-update'; did you mean '-fprofile-update='?" "" { target *-*-* } 0 } */
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-fno-sanitize" } */
+/* { dg-error "unrecognized command line option '-fno-sanitize'; did you mean '-fno-sanitize='?" "" { target *-*-* } 0 } */
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-Walloc-size-larger-than" } */
+/* { dg-error "unrecognized command line option '-Walloc-size-larger-than'; did you mean '-Walloc-size-larger-than='?" "" { target *-*-* } 0 } */