https://gcc.gnu.org/g:593dd35403793ce401586689802d06662c75f1f7

commit r15-11210-g593dd35403793ce401586689802d06662c75f1f7
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 cdb396618373..30a943b0778a 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 b4559409de05..9bb5c715df8f 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"

Reply via email to