11#! /bin/sh
22# Configuration validation subroutine script.
3- # Copyright 1992-2016 Free Software Foundation, Inc.
3+ # Copyright 1992-2017 Free Software Foundation, Inc.
44
5- timestamp=' 2016-01-01 '
5+ timestamp=' 2017-04-02 '
66
77# This file is free software; you can redistribute it and/or modify it
88# under the terms of the GNU General Public License as published by
6767version=" \
6868GNU config.sub ($timestamp )
6969
70- Copyright 1992-2016 Free Software Foundation, Inc.
70+ Copyright 1992-2017 Free Software Foundation, Inc.
7171
7272This is free software; see the source for copying conditions. There is NO
7373warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -117,7 +117,7 @@ case $maybe_os in
117117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd* -gnu* | \
119119 knetbsd* -gnu* | netbsd* -gnu* | netbsd* -eabi* | \
120- kopensolaris* -gnu* | \
120+ kopensolaris* -gnu* | cloudabi * -eabi * | \
121121 storm-chaos* | os2-emx* | rtmk-nova* )
122122 os=-$maybe_os
123123 basic_machine=` echo $1 | sed ' s/^\(.*\)-\([^-]*-[^-]*\)$/\1/' `
@@ -263,7 +263,7 @@ case $basic_machine in
263263 | fido | fr30 | frv | ft32 \
264264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265265 | hexagon \
266- | i370 | i860 | i960 | ia64 \
266+ | i370 | i860 | i960 | ia16 | ia64 \
267267 | ip2k | iq2000 \
268268 | k1om \
269269 | le32 | le64 \
@@ -301,6 +301,7 @@ case $basic_machine in
301301 | open8 | or1k | or1knd | or32 \
302302 | pdp10 | pdp11 | pj | pjl \
303303 | powerpc | powerpc64 | powerpc64le | powerpcle \
304+ | pru \
304305 | pyramid \
305306 | riscv32 | riscv64 \
306307 | rl78 | rx \
@@ -314,6 +315,7 @@ case $basic_machine in
314315 | ubicom32 \
315316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316317 | visium \
318+ | wasm32 \
317319 | we32k \
318320 | x86 | xc16x | xstormy16 | xtensa \
319321 | z8k | z80)
@@ -387,7 +389,7 @@ case $basic_machine in
387389 | h8300-* | h8500-* \
388390 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
389391 | hexagon-* \
390- | i* 86-* | i860-* | i960-* | ia64-* \
392+ | i* 86-* | i860-* | i960-* | ia16- * | ia64-* \
391393 | ip2k-* | iq2000-* \
392394 | k1om-* \
393395 | le32-* | le64-* \
@@ -428,6 +430,7 @@ case $basic_machine in
428430 | orion-* \
429431 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
430432 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
433+ | pru-* \
431434 | pyramid-* \
432435 | riscv32-* | riscv64-* \
433436 | rl78-* | romp-* | rs6000-* | rx-* \
@@ -444,6 +447,7 @@ case $basic_machine in
444447 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
445448 | vax-* \
446449 | visium-* \
450+ | wasm32-* \
447451 | we32k-* \
448452 | x86-* | x86_64-* | xc16x-* | xps100-* \
449453 | xstormy16-* | xtensa* -* \
@@ -643,6 +647,14 @@ case $basic_machine in
643647 basic_machine=m68k-bull
644648 os=-sysv3
645649 ;;
650+ e500v[12])
651+ basic_machine=powerpc-unknown
652+ os=$os " spe"
653+ ;;
654+ e500v[12]-* )
655+ basic_machine=powerpc-` echo $basic_machine | sed ' s/^[^-]*-//' `
656+ os=$os " spe"
657+ ;;
646658 ebmon29k)
647659 basic_machine=a29k-amd
648660 os=-ebmon
@@ -938,6 +950,9 @@ case $basic_machine in
938950 nsr-tandem)
939951 basic_machine=nsr-tandem
940952 ;;
953+ nsx-tandem)
954+ basic_machine=nsx-tandem
955+ ;;
941956 op50n-* | op60c-* )
942957 basic_machine=hppa1.1-oki
943958 os=-proelf
@@ -1022,7 +1037,7 @@ case $basic_machine in
10221037 ppc-* | ppcbe-* )
10231038 basic_machine=powerpc-` echo $basic_machine | sed ' s/^[^-]*-//' `
10241039 ;;
1025- ppcle | powerpclittle | ppc-le | powerpc-little )
1040+ ppcle | powerpclittle)
10261041 basic_machine=powerpcle-unknown
10271042 ;;
10281043 ppcle-* | powerpclittle-* )
@@ -1032,7 +1047,7 @@ case $basic_machine in
10321047 ;;
10331048 ppc64-* ) basic_machine=powerpc64-` echo $basic_machine | sed ' s/^[^-]*-//' `
10341049 ;;
1035- ppc64le | powerpc64little | ppc64-le | powerpc64-little )
1050+ ppc64le | powerpc64little)
10361051 basic_machine=powerpc64le-unknown
10371052 ;;
10381053 ppc64le-* | powerpc64little-* )
@@ -1233,6 +1248,9 @@ case $basic_machine in
12331248 basic_machine=a29k-wrs
12341249 os=-vxworks
12351250 ;;
1251+ wasm32)
1252+ basic_machine=wasm32-unknown
1253+ ;;
12361254 w65* )
12371255 basic_machine=w65-wdc
12381256 os=-none
@@ -1382,14 +1400,14 @@ case $os in
13821400 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13831401 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13841402 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1385- | -bitrig* | -openbsd* | -solidbsd* \
1403+ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd * \
13861404 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13871405 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13881406 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13891407 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1390- | -chorusos* | -chorusrdb* | -cegcc* \
1408+ | -chorusos* | -chorusrdb* | -cegcc* | -glidix * \
13911409 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1392- | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1410+ | -midipix * | - mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13931411 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13941412 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
13951413 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
@@ -1399,7 +1417,7 @@ case $os in
13991417 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
14001418 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
14011419 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1402- | -onefs* | -tirtos* )
1420+ | -onefs* | -tirtos* | -phoenix * | -fuchsia * | -redox * )
14031421 # Remember, each alternative MUST END IN *, to match a version number.
14041422 ;;
14051423 -qnx* )
@@ -1531,6 +1549,8 @@ case $os in
15311549 ;;
15321550 -nacl* )
15331551 ;;
1552+ -ios)
1553+ ;;
15341554 -none)
15351555 ;;
15361556 * )
@@ -1626,6 +1646,9 @@ case $basic_machine in
16261646 sparc-* | * -sun)
16271647 os=-sunos4.1.1
16281648 ;;
1649+ pru-* )
1650+ os=-elf
1651+ ;;
16291652 * -be)
16301653 os=-beos
16311654 ;;
0 commit comments