Fix test-suite fallout.
authorMartin Liska <mliska@suse.cz>
Tue, 12 Nov 2019 10:10:28 +0000 (11:10 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 12 Nov 2019 10:10:28 +0000 (10:10 +0000)
2019-11-12  Martin Liska  <mliska@suse.cz>

* gcc.dg/completion-3.c: Append = to all expected
results and sort expected output.
* gcc.dg/pr83620.c: Update error message.
* gcc.dg/spellcheck-params-2.c: Likewise.
* gcc.dg/spellcheck-params.c: Likewise.
* gcc.misc-tests/help.exp: Update expected output.

From-SVN: r278089

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/completion-3.c
gcc/testsuite/gcc.dg/pr83620.c
gcc/testsuite/gcc.dg/spellcheck-params-2.c
gcc/testsuite/gcc.dg/spellcheck-params.c
gcc/testsuite/gcc.misc-tests/help.exp

index 45fb8e5201847f6ddd78ca4b36394bcbc17d34b9..8c63ddf5c0edce0bdd8c517cb52d334d67e211eb 100644 (file)
@@ -1,3 +1,12 @@
+2019-11-12  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/completion-3.c: Append = to all expected
+       results and sort expected output.
+       * gcc.dg/pr83620.c: Update error message.
+       * gcc.dg/spellcheck-params-2.c: Likewise.
+       * gcc.dg/spellcheck-params.c: Likewise.
+       * gcc.misc-tests/help.exp: Update expected output.
+
 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
            Tobias Burnus  <tobias@codesourcery.com>
            Frederik Harwath  <frederik@codesourcery.com>
index 3c4a89ffdd50b3b4dac2d0edfc814168e1145135..a240993dd45e3d162ad9ed95118cb2faba16b22e 100644 (file)
@@ -2,12 +2,12 @@
 /* { dg-options "--completion=--param=asan-" } */
 
 /* { dg-begin-multiline-output "" }
---param=asan-stack
---param=asan-instrument-allocas
---param=asan-globals
---param=asan-instrument-writes
---param=asan-instrument-reads
---param=asan-memintrin
---param=asan-use-after-return
---param=asan-instrumentation-with-call-threshold
+--param=asan-globals=
+--param=asan-instrument-allocas=
+--param=asan-instrument-reads=
+--param=asan-instrument-writes=
+--param=asan-instrumentation-with-call-threshold=
+--param=asan-memintrin=
+--param=asan-stack=
+--param=asan-use-after-return=
    { dg-end-multiline-output "" } */
index e0e44a3b421aab4b639ece85d523f1de154de058..cf6eb91197f3e1a21a2aeaa064dd3eee9918e09a 100644 (file)
@@ -1,7 +1,7 @@
 /* PR rtl-optimization/86620 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -flive-range-shrinkage --param=max-sched-ready-insns=0" } */
-/* { dg-error "minimum value of parameter 'max-sched-ready-insns' is 1" "" { target *-*-* } 0 } */
+/* { dg-error "argument to '--param=max-sched-ready-insns=' is not between 1 and 65536" "" { target *-*-* } 0 } */
 
 void
 foo (void)
index 8187de43481f9a3122d5cd8eb4103ed9f1127569..0f56241f48fd96efac39c0f5c4d51603ae44b0ca 100644 (file)
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
 /* { dg-options "--param does-not-resemble-anything=42" } */
-/* { dg-error "invalid '--param' name 'does-not-resemble-anything'"  "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized command-line option '--param=does-not-resemble-anything=42'"  "" { target *-*-* } 0 } */
 
index 01e1343ab9e143304b198122a75e8ad0546584d7..4010a5df0d204d3587465c23865d3e5639994ca3 100644 (file)
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
 /* { dg-options "--param max-early-inliner-iteration=3" } */
-/* { dg-error "invalid '--param' name 'max-early-inliner-iteration'; did you mean 'max-early-inliner-iterations'?"  "" { target *-*-* } 0 } */
+/* { dg-error "unrecognized command-line option '--param=max-early-inliner-iteration=3'; did you mean '--param=max-early-inliner-iterations='?"  "" { target *-*-* } 0 } */
 
index 4bb359f698de54b9d8b58121b8496061319042b7..60e794b1f46285d5691866cea8451bf425f4f92a 100644 (file)
@@ -64,7 +64,7 @@ check_for_options c "-v --help" "" {are likely to\n  -std} ""
 check_for_options c "--help=optimizers" "-O" "  -g  " ""
 check_for_options c "--help=params" "maximum number of" "-Wunsafe-loop-optimizations" ""
 check_for_options_with_filter c "--help=params" \
-    "^The --param option recognizes the following as parameters:$" "" {[^.]$} ""
+    "^The following options control parameters:$" "" {[^.]$} ""
 check_for_options c "--help=C" "-ansi" "-gnatO" ""
 check_for_options c {--help=C++} {-std=c\+\+} "-gnatO" ""
 check_for_options c "--help=common" "-dumpbase" "-gnatO" ""
@@ -133,8 +133,6 @@ check_for_options c "--help=warnings,^joined" \
     "^ +-Wtrigraphs" "^ +-Wformat=" ""
 check_for_options c "--help=joined,separate" \
     "^ +-I" "" ""
-check_for_options c "--help=^joined,separate" \
-    "^ +--param " "" ""
 check_for_options c "--help=joined,^separate" \
     "^ +--help=" "" ""
 check_for_options c "--help=joined,undocumented" "" "" ""