PR middle-end/77475
commit3aa4e8c252b6da08a5ae38ac946e2c5136f414cf
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Sep 2016 12:26:39 +0000 (15 12:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Sep 2016 12:26:39 +0000 (15 12:26 +0000)
treee11ad0ec7c5a00cf9a5e3f4cde6be892aad7e717
parent43514de0e927de714e37482c5332c7938fbf6ca3
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240162 138bc75d-0d04-0410-961f-82ee72b054a4
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]