[gcc r13-10433] testsuite: Fix up another tcl 9 compatibility problem
Jakub Jelinek via Gcc-cvs <[email protected]> Sat, 1 Aug 2026 10:57:23 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:35aae2b07dd0a4bd2e2034646c6fad698bd8155d commit r13-10433-g35aae2b07dd0a4bd2e2034646c6fad698bd8155d Author: Jakub Jelinek <[email protected]> Date: Thu Mar 26 18:11:06 2026 +0100 testsuite: Fix up another tcl 9 compatibility problem TCL 9 removed case command which has been deprecated before. https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9 says "Replace case with switch" and switch has been working in TCL 8 just fine. 2026-03-26 Jakub Jelinek <[email protected]> * lib/mike-gcc.exp (postbase): Use switch instead of case for TCL 9 compatibility. * lib/mike-g++.exp (postbase): Likewise. (cherry picked from commit aa45de0c3173c6b85e079449d2f8f0eab9a38a7d) Diff: --- gcc/testsuite/lib/mike-g++.exp | 2 +- gcc/testsuite/lib/mike-gcc.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/lib/mike-g++.exp b/gcc/testsuite/lib/mike-g++.exp index 75212c16c17a..f54e8c12cd13 100644 --- a/gcc/testsuite/lib/mike-g++.exp +++ b/gcc/testsuite/lib/mike-g++.exp @@ -101,7 +101,7 @@ proc postbase { src_code run groups args } { set compile_type "none" - case $actions { + switch $actions { compile { set compile_type "assembly" diff --git a/gcc/testsuite/lib/mike-gcc.exp b/gcc/testsuite/lib/mike-gcc.exp index 91e7f41a9a4b..63bb91176222 100644 --- a/gcc/testsuite/lib/mike-gcc.exp +++ b/gcc/testsuite/lib/mike-gcc.exp @@ -105,7 +105,7 @@ proc postbase { src_code run groups args } { set compile_type "none" - case $actions { + switch $actions { compile { set compile_type "assembly"