* config.sub (s390, s390x): Use 'ibm' vendor default, but allow

overrides.

Previously, 'ibm' was forced, which caused problems when someone
wanted to use 'busybox' as a vendor and cross-compile with a slightly
different toolchain. The fix changed behaviour such that without any
vendor, it would use to 'unknown' rather than 'ibm' as before.

This patch aims to compromise between the old and new behaviour by
making 'ibm' a default for those CPUs when no vendor is specified, but
if the user explicitly provides a vendor that is used instead. This
sort of "vendor defaulting" has plenty of precedent in config.sub, so
it seemed like a good approach.

Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
John Ericson 2020-06-28 11:26:24 +10:00 committed by Ben Elliston
parent 2b81440a51
commit 62db2b6bd6
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2020-06-28 John Ericson <john.ericson@obsidian.systems>
* config.sub (s390, s390x): Use 'ibm' vendor default, but allow
overrides.
2020-06-27 John Ericson <john.ericson@obsidian.systems>
* config.sub: Allow CPU to influence vendor defaulting too.

3
config.sub vendored
View File

@ -1763,6 +1763,9 @@ case $vendor in
*-os400*)
vendor=ibm
;;
s390-* | s390x-*)
vendor=ibm
;;
*-ptx*)
vendor=sequent
;;

View File

@ -581,10 +581,12 @@ rs6000 rs6000-ibm-aix
rx-linux rx-unknown-linux-gnu
rx rx-unknown-none
s12z s12z-unknown-none
s390 s390-unknown-none
s390x s390x-unknown-none
s390-linux s390-unknown-linux-gnu
s390x-linux s390x-unknown-linux-gnu
s390 s390-ibm-none
s390x s390x-ibm-none
s390-linux s390-ibm-linux-gnu
s390x-linux s390x-ibm-linux-gnu
s390-busybox-linux s390-busybox-linux-gnu
s390x-busybox-linux s390x-busybox-linux-gnu
s390-ibm-zvmoe s390-ibm-zvmoe
s390x-ibm-zvmoe s390x-ibm-zvmoe
sa29200 a29k-amd-udi