config.sub: Handle arbitrary MIPS CPU names

GNU binutils support the selection of the default MIPS subtarget via the
configuration triplet, e.g. `mips64octeon+el-unknown-linux-gnu' builds a
Linux/GNU 64-bit MIPS (n32 ABI) little-endian configuration with the CPU
set to Octeon+ by default.  However `config.sub' rejects such a triplet
and indeed it only lets through a random choice of ones people submitted
changes for to support.

There is a large number of MIPS CPU configurations, 118 at the moment,
that GNU binutils know, so rather than adding them individually and then
hoping it will be kept up to date from now on accept any `mips*' pattern
for the machine part, just as we already do for a few of other targets.

	* config.sub: Allow any `mips*' CPU rather than listing a choice
	individually.
	* doc/config.sub.1: Regenerate.
	* testsuite/config-sub.data: Add test cases.
This commit is contained in:
Maciej W. Rozycki
2023-07-31 11:00:55 +01:00
committed by Dmitry V. Levin
parent af8d803a82
commit d4e37b5868
3 changed files with 9 additions and 27 deletions

View File

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.TH CONFIG.SUB "1" "July 2023" "GNU config.sub (2023-07-19)" "User Commands"
.TH CONFIG.SUB "1" "July 2023" "GNU config.sub (2023-07-31)" "User Commands"
.SH NAME
config.sub \- validate and canonicalize a configuration triplet
.SH SYNOPSIS