config.sub: improve consistency of shorthands and X-Y partial names.

It seems to me that if ‘fooco’ expands to ‘cpu-fooco-foonlyos’,
where ‘cpu’ is whatever CPU was hip at the time Fooco was making
computers, then ‘cpu-fooco’ should also expand to ‘cpu-fooco-foonlyos’,
and ‘cpu-foonlyos’ should as well, except when ‘foonlyos’ is something
generic like ‘sysv’ or ‘bsd’.  Implement a bunch of cases where we
didn’t do this quite right.  Probably there are more.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Zack Weinberg
2024-06-03 15:28:42 -04:00
committed by Dmitry V. Levin
parent a75beeb9f1
commit a824e7f40b
2 changed files with 48 additions and 11 deletions

View File

@ -302,6 +302,8 @@ hp9k893 hppa1.1-hp-hpux
hppa hppa-unknown-none
hppa-next hppa-next-nextstep
hppa1.0 hppa1.0-unknown-none
hppa1.0-hitachi hppa1.0-hitachi-hiuxwe2
hppa1.1-hitachi hppa1.1-hitachi-hiuxwe2
hppa2.0 hppa2.0-unknown-none
hppa2.0n hppa2.0n-unknown-none
hppa64 hppa64-unknown-none
@ -449,6 +451,7 @@ m68knommu m68k-unknown-linux-gnu
m68knommu-elf m68k-unknown-elf
m68knommu-linux m68k-unknown-linux-gnu
m88k m88k-unknown-none
m88k-harris m88k-harris-sysv3
m88k-omron m88k-omron-luna
m9s12z s12z-unknown-none
mac m68k-apple-macos
@ -477,7 +480,14 @@ mingw32ce arm-unknown-mingw32ce
mingw64 x86_64-pc-mingw64
miniframe m68000-convergent-sysv
mips mips-unknown-elf
mips-digital mips-dec-ultrix4.2
mips-sde-elf mips-sde-elf
mips-sgi mips-sgi-irix
mips-siemens mips-siemens-sysv4
mips-sinix mips-sni-sysv4
mips-sinix5 mips-sni-sysv4
mips-sinix5.0 mips-sni-sysv5.0
mips-sni mips-sni-sysv4
mips-zephyr mips-unknown-zephyr
mips16 mips16-unknown-elf
mips64 mips64-unknown-elf