+2019-04-27 Martin Liska <mliska@suse.cz>
+
+ PR middle-end/90258
+ * opt-suggestions.c (option_proposer::build_option_suggestions):
+ When get_valid_option_values returns empty values, add the
+ misspelling candidate.
+
2019-04-26 Jim Wilson <jimw@sifive.com>
* config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
}
else
{
+ bool option_added = false;
if (option->flags & CL_TARGET)
{
vec<const char *> option_values
= targetm_common.get_valid_option_values (i, prefix);
if (!option_values.is_empty ())
{
+ option_added = true;
for (unsigned j = 0; j < option_values.length (); j++)
{
char *with_arg = concat (opt_text, option_values[j],
}
option_values.release ();
}
- else
+
+ if (!option_added)
add_misspelling_candidates (m_option_suggestions, option,
opt_text);
}
+2019-04-27 Martin Liska <mliska@suse.cz>
+
+ PR middle-end/90258
+ * gcc.dg/completion-5.c: New test.
+ * gcc.target/i386/spellcheck-options-5.c: New test.
+
2019-04-26 Jim Wilson <jimw@sifive.com>
* gcc.target/riscv/load-immediate.c: New.
--- /dev/null
+/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "--completion=-mfm" } */
+
+/* { dg-begin-multiline-output "" }
+-mfma
+-mfma4
+ { dg-end-multiline-output "" } */
--- /dev/null
+/* PR middle-end/90258. */
+
+/* { dg-do compile } */
+/* { dg-options "-mandroidX" } */
+/* { dg-error "unrecognized command line option '-mandroidX'; did you mean '-mandroid'" "" { target *-*-* } 0 } */