[PATCH] Add missing target options (PR middle-end/90258).
Martin Liška
mliska@suse.cz
Fri Apr 26 11:10:00 GMT 2019
Hi.
The fix is about forgotten target options for which get_valid_option_values
returns empty list.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed to trunk and later than to gcc-9 branch?
Thanks,
Martin
gcc/ChangeLog:
2019-04-26 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.
gcc/testsuite/ChangeLog:
2019-04-26 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.
---
gcc/opt-suggestions.c | 5 ++++-
gcc/testsuite/gcc.dg/completion-5.c | 7 +++++++
gcc/testsuite/gcc.target/i386/spellcheck-options-5.c | 5 +++++
3 files changed, 16 insertions(+), 1 deletion(-)
create mode 100644 gcc/testsuite/gcc.dg/completion-5.c
create mode 100644 gcc/testsuite/gcc.target/i386/spellcheck-options-5.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-missing-target-options-PR-middle-end-90258.patch
Type: text/x-patch
Size: 1781 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190426/dc797611/attachment.bin>
More information about the Gcc-patches
mailing list