re PR middle-end/77475 (unnecessary or misleading context in reporting command line...
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Sep 2016 12:26:39 +0000 (14:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Sep 2016 12:26:39 +0000 (14:26 +0200)
commit76ff80fb8bd42fa4c75866b1f952b39c9775c094
treee11ad0ec7c5a00cf9a5e3f4cde6be892aad7e717
parent1b75c936018a0931c3b599e624bd15c4fb7c4fe6
re PR middle-end/77475 (unnecessary or misleading context in reporting command line problems)

PR middle-end/77475
* config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
use %qs instead of %s where desirable, use argument instead of arg in
the diagnostic wording, add list of supported strategies and
spellcheck hint.
(ix86_option_override_internal): Emit target("m...") instead of
option("m...") in the diagnostic.  Use %qs instead of %s in invalid
-march/-mtune option diagnostic.  Add list of supported arches/tunings
and spellcheck hint.  Remove prefix, suffix and sw variables, use
main_args_p ? "..." : "..." in diagnostics to make translation
possible.

* gcc.target/i386/pr65990.c: Adjust expected diagnostics.
* gcc.dg/march-generic.c: Likewise.
* gcc.target/i386/spellcheck-options-1.c: New test.
* gcc.target/i386/spellcheck-options-2.c: New test.
* gcc.target/i386/spellcheck-options-3.c: New test.
* gcc.target/i386/spellcheck-options-4.c: New test.

From-SVN: r240162
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/march-generic.c
gcc/testsuite/gcc.target/i386/pr65990.c
gcc/testsuite/gcc.target/i386/spellcheck-options-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/spellcheck-options-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/spellcheck-options-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/spellcheck-options-4.c [new file with mode: 0644]