[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 05/15] config.sub: consistently use sun as default vendor for
From: |
Zack Weinberg |
Subject: |
[RFC PATCH 05/15] config.sub: consistently use sun as default vendor for solaris*. |
Date: |
Mon, 3 Jun 2024 15:28:34 -0400 |
config.sub had a rule that os=sunos* implies vendor=sun unless the
vendor has already been set for some other reason, but no such rule
for os=solaris*, and that meant `./config.sub sparc-solaris2` was
inconsistent with what you’d get from config.guess on that system.
Add the missing rule.
Unlike the previous patch, this changes config.sub output for some
systems still actually in use today, but hardly anything looks at
the vendor field unless the OS field is something super generic like
“bsd” or “sysv”, so I think we can get away with it.
This patch also adds tests for the mapping of ‘sunos5’ to ‘solaris2’
and ‘solaris1’ to ‘sunos4’, which is logically unrelated *except*
that some of those test cases will fail in the absence of the above
change.
---
config.sub | 2 +-
testsuite/config-sub.data | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/config.sub b/config.sub
index 2ebbed7..e1bb431 100755
--- a/config.sub
+++ b/config.sub
@@ -2237,7 +2237,7 @@ case $vendor in
*-riscix*)
vendor=acorn
;;
- *-sunos*)
+ *-sunos* | *-solaris*)
vendor=sun
;;
*-cnk* | *-aix*)
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index aab6419..9357454 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -770,6 +770,12 @@ shle-elf shle-unknown-elf
simso-wrs sparclite-wrs-vxworks
sparc sparc-sun-sunos4.1.1
sparc-haiku sparc-unknown-haiku
+sparc-solaris sparc-sun-solaris2
+sparc-solaris1 sparc-sun-sunos4
+sparc-sunos sparc-sun-sunos
+sparc-sunos4 sparc-sun-sunos4
+sparc-sunos5 sparc-sun-solaris2
+sparc-sunos6 sparc-sun-solaris3
sparc-zephyr sparc-unknown-zephyr
sparc64 sparc64-unknown-none
sparc64-linux sparc64-unknown-linux-gnu
@@ -777,7 +783,7 @@ sparc64b
sparc64b-unknown-none
sparc64b-linux sparc64b-unknown-linux-gnu
sparc64v sparc64v-unknown-none
sparc64v-elf sparc64v-unknown-elf
-sparc64v-solaris2.9 sparc64v-unknown-solaris2.9
+sparc64v-solaris2.9 sparc64v-sun-solaris2.9
sparc86x sparc86x-unknown-none
sparclet sparclet-unknown-none
sparclite sparclite-unknown-none
@@ -787,7 +793,7 @@ sparcv9
sparcv9-unknown-none
sparcv9b sparcv9b-unknown-none
sparcv9v sparcv9v-unknown-none
sparcv9v-elf sparcv9v-unknown-elf
-sparcv9v-solaris2.9 sparcv9v-unknown-solaris2.9
+sparcv9v-solaris2.9 sparcv9v-sun-solaris2.9
sps7 m68k-bull-sysv2
spu spu-unknown-elf
spu-elf spu-unknown-elf
--
2.43.2
- [RFC PATCH 00/15] config.sub bug fixes, Zack Weinberg, 2024/06/03
- [RFC PATCH 01/15] config.sub: testsuite: whitespace and sorting corrections., Zack Weinberg, 2024/06/03
- [RFC PATCH 02/15] config.sub: disable shellcheck warning SC2162 globally., Zack Weinberg, 2024/06/03
- [RFC PATCH 03/15] config.sub: flatten and sort long case-alternative lists, Zack Weinberg, 2024/06/03
- [RFC PATCH 04/15] config.sub: correct Bull DPX/2-[123]00 and DPX/20 canonical names., Zack Weinberg, 2024/06/03
- [RFC PATCH 05/15] config.sub: consistently use sun as default vendor for solaris*.,
Zack Weinberg <=
- [RFC PATCH 06/15] config.sub: accept knetbsd-gnu, netbsd-gnu, uclinux-gnu., Zack Weinberg, 2024/06/03
- [RFC PATCH 07/15] config.sub: handle cNN-convex and convex-cNN shorthands correctly., Zack Weinberg, 2024/06/03
- [RFC PATCH 08/15] config.sub: don’t override OS for c90-cray., Zack Weinberg, 2024/06/03
- [RFC PATCH 09/15] config.sub: don’t override OS for blackfin, m68knommu, parisc., Zack Weinberg, 2024/06/03
- [RFC PATCH 11/15] config.sub: remove two unreachable case clauses., Zack Weinberg, 2024/06/03
- [RFC PATCH 10/15] config.sub: normalize nextstep/openstep consistently., Zack Weinberg, 2024/06/03
- [RFC PATCH 12/15] config.sub: Treat i386-pc-rtmk-nova as a 4-part system name., Zack Weinberg, 2024/06/03
- [RFC PATCH 13/15] config.sub: improve consistency of shorthands and X-Y partial names., Zack Weinberg, 2024/06/03
- [RFC PATCH 14/15] config.sub: add missing CPUs, vendors, and OSes., Zack Weinberg, 2024/06/03
- [RFC PATCH 15/15] config.sub: testsuite: add 121 more test cases., Zack Weinberg, 2024/06/03