diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-27 10:51:52 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-27 22:52:15 +1030 |
commit | e3696f67abfc46dcac6c9bbe47f8e25e34b17be5 (patch) | |
tree | e241615305663b2d2fee857efefb7001014b78b1 /gas/testsuite/lib | |
parent | 7568c93bf95a518797dfb2987b04911164c14a36 (diff) | |
download | binutils-gdb-e3696f67abfc46dcac6c9bbe47f8e25e34b17be5.tar.gz |
Replace deprecated tcl case statements with switch statements
binutils/
* testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
case statement with switch statement.
gas/
* testsuite/gas/all/gas.exp: Replace case statements with switch
statements.
* testsuite/gas/elf/elf.exp: Likewise.
* testsuite/gas/macros/macros.exp: Likewise.
* testsuite/lib/gas-defs.exp: Likewise.
ld/
* testsuite/ld-elfvers/vers.exp: Replace case statements with
switch statements.
* testsuite/ld-ifunc/ifunc.exp: Likewise.
* testsuite/ld-unique/unique.exp: Likewise.
Diffstat (limited to 'gas/testsuite/lib')
-rw-r--r-- | gas/testsuite/lib/gas-defs.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp index c17262c56a6..6649eaa3762 100644 --- a/gas/testsuite/lib/gas-defs.exp +++ b/gas/testsuite/lib/gas-defs.exp @@ -267,7 +267,7 @@ proc gas_init { args } { global target_os global stdoptlist - case "$target_cpu" in { + switch -glob "$target_cpu" { "m68???" { set target_cpu_family m68k } "i[3-7]86" { set target_cpu_family i386 } default { set target_cpu_family $target_cpu } |