538 Commits

Author SHA1 Message Date
Ben Elliston
b75cdc942a * config.sub: Simplify an if expression. 2018-05-05 21:11:00 +10:00
John Ericson
09df750b99 * config.sub (arm*-*-none-eabi): Recognise.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-05 21:09:43 +10:00
Ben Elliston
65463c5913 * config.sub: Pass the -r option to 'read'. 2018-05-05 21:00:21 +10:00
John Ericson
50a0413a5b * config.sub: Properly recognise configuration types with four
components. Re-work the old logic to simplify the shell code.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-05 15:15:12 +10:00
Ben Elliston
76d82de19f * config.sub: Whitespace tweak. 2018-05-03 04:49:10 +10:00
Ben Elliston
0bb25285e2 * config.sub (maybe_os): Reindent this block. 2018-05-01 15:45:14 +10:00
John Ericson
f3e464fb69 * config.sub: Rewrite basic_machine 'if' with 'case'.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-01 15:41:39 +10:00
Francois H. Theron
d23f148145 * config.sub (nfp, nfp-*): New.
* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-01 15:29:04 +10:00
John Ericson
c62a41f36a * config.sub (arm6m, armv[78][arm]): Recognise.
* testsuite/config-sub.data: Add tests.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-04-24 09:06:53 +10:00
Mao Han
63b4ce2e8c * config.sub (csky, csky-*): Recognise.
* testsuite/config-sub.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-04-16 14:46:36 +10:00
John Darrington
c3818bbab0 * config.sub (s12z, hcs12z, m68hcs12z, m9s12z): New.
* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-04-16 14:33:13 +10:00
Paul Eggert
614ae20b93 * config.guess: Use before-save-hook not write-file-functions.
* config.sub: Ditto.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-03-08 11:29:55 +11:00
Rishi Khan
b69837cbbd * config.sub (hcos-*): Recognise.
* testsuite/config-sub.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-02-28 09:15:47 +11:00
Ben Elliston
365ea7edee Reported by Nelson H. F. Beebe:
* config.sub (os): Recognise midnightbsd*.
	* testsuite/config-sub.data: Add a test case.
2018-02-22 13:50:09 +11:00
Ben Elliston
12c6a5c16e * config.sub: Double quote variables to silence warning SC2086
(double quote to prevent globbing and word splitting).
2018-01-15 07:33:04 +11:00
Ben Elliston
391ea45d14 * config.sub (os): Move -es1800* case above -es*.
* testsuite/config-sub.data: Add several test cases.
2018-01-14 11:18:55 +11:00
Ben Elliston
8ca6442e66 * config.sub (os): Remove overlapping pattern -svr4*. 2018-01-14 11:01:37 +11:00
Ben Elliston
e8c56e37c2 * config.sub (maybe_os): Remove duplicate pattern -hms*.
* testsuite/config-sub.data: Add a test.
2018-01-14 10:57:24 +11:00
Ben Elliston
10438e2050 * config.sub (maybe_os): Remove duplicate pattern -beos*.
* testsuite/config-sub.data: Add a test.
2018-01-14 10:54:49 +11:00
Ben Elliston
d1a4abff22 * config.sub (maybe_os): Remove duplicated pattern -haiku*.
(basic_machine): Don't match haiku in the manufacturer field.
	* testsuite/config-sub.data: Add a test.
2018-01-14 10:51:48 +11:00
Ben Elliston
aaaf06062a * config.sub (maybe_os): Remove duplicated pattern -opened* which
prevents the more specific case matching on line 1427.
	* testsuite/config-sub.data: Add a test.
2018-01-14 10:29:58 +11:00
Ben Elliston
53fa691097 * config.sub (maybe_os): Remove first and duplicate -none*
case. This is matched further down. Found by Shellcheck.
2018-01-14 08:31:27 +11:00
Ben Elliston
5960fa40b2 * config.sub (maybe_os): Remove duplicate case for z8k. 2018-01-13 23:10:33 +11:00
Ben Elliston
8af31e838c * config.sub (maybe_os): Remove duplicate case for sh.
* testsuite/config-sub.data: Add test cases for sh and sh-elf.
2018-01-13 23:06:49 +11:00
Ben Elliston
f22522a600 * config.sub (maybe_os): Remove duplicate patterns for sparc,
sparcv8, sparcv9, sparcv9b and sparcv9v. Found by Shellcheck.
2018-01-13 22:12:38 +11:00
Ben Elliston
efc9a4d8d5 * config.sub (maybe_os): Remove cases z8k-*-coff and z80-*-coff as
these are never matched. Found by Shellcheck.
2018-01-13 22:09:07 +11:00
Ben Elliston
dea159d913 * config.sub (maybe_os): Remove duplicate m88k-omron* case.
Found by Shellcheck.
	* testsuite/config-sub.data: Add a test case.
2018-01-13 22:06:51 +11:00
Ben Elliston
1ea2427f47 * config.sub (maybe_os): Remove pdp10 case as it is handled above.
Found by Shellcheck.
2018-01-13 21:45:29 +11:00
Ben Elliston
97447f42ae * config.sub (basic_machine): Remove first pdp11 case so that the
second, specialised case will match instead. Found by Shellcheck.
	* testsuite/config-sub.data: Adjust test case.
2018-01-13 21:43:46 +11:00
Ben Elliston
0ce3d2f0c0 * config.sub (maybe_os): Clean up 386BSD.
* testsuite/config-sub.data: Adjust test cases.
2018-01-13 21:37:16 +11:00
Ben Elliston
702204e47b * config.sub (maybe_os): Remove sparclite-wrs pattern as it is
matched by sparclite-* above. Found by Shellcheck.
	* testsuite/config-sub.data: Add test cases.
2018-01-13 21:00:55 +11:00
Ben Elliston
a592387de4 * config.sub (maybe_os): Remove -rtmk-nova* pattern as it is
matched by -rtmk* immediately preceding it. Found by Shellcheck.
2018-01-13 20:55:11 +11:00
Ben Elliston
e8ad65b91a * config.sub (maybe_os): Remove duplicate sh64 case as it is
matched above. Found by Shellcheck.
2018-01-13 20:53:14 +11:00
Ben Elliston
f22c2fe826 * config.sub (maybe_os): Remove duplicate wasm32 case as it is
matched above. Found by Shellcheck.
2018-01-13 20:51:52 +11:00
Ben Elliston
6189f8e47a * config.sub (maybe_os): Remove duplicate -osfrose* and -osf*
cases as these are matched above by -osf*. Found by Shellcheck.
2018-01-13 20:43:28 +11:00
Ben Elliston
8503c24298 * config.sub (maybe_os): Remove second and duplicate *-xenix case
as only the first will match. Found by Shellcheck.
	* testsuite/config-sub.data: Add test case.
2018-01-13 20:12:27 +11:00
Ben Elliston
a9f681360d * config.sub (maybe_os): Remove hppa-next which can never match
due to an earlier pattern. Found by Shellcheck.
	* testsuite/config-sub.data: Add test cases.
2018-01-13 20:05:24 +11:00
Ben Elliston
e9fbad7e05 * config.sub (maybe_os): Remove i386-vsta which can never match
due to an earlier pattern (but retain vsta). Found by Shellcheck.
	* testsuite/config-sub.data: Add test cases.
2018-01-13 20:01:54 +11:00
Ben Elliston
e9ecf4f360 * config.sub (maybe_os): Remove second and duplicate -aros*
case. Only the first will match. Found by Shellcheck.
2018-01-13 19:48:02 +11:00
Ben Elliston
b6b5d6c4c7 * config.sub (maybe_os): Remove second and duplicate *-next
case. Only the first will match. Found by Shellcheck.
2018-01-13 17:10:28 +11:00
Randall S. Becker
a69a8a3d51 * config.guess (NSV-*:NONSTOP_KERNEL:*:*): New.
* config.sub (nsv-tandem): New.
	* testsuite/config-guess.data: Add a test case.
	* testsuite/config-sub.data: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-01-11 10:00:52 +11:00
Ben Elliston
6fc06f163a * config.guess: Update copyright years.
* config.sub: Likewise.
	* doc/config.guess.1: Regenerate.
	* doc/config.sub.1: Likewise.
2018-01-01 17:10:32 +11:00
Ben Elliston
6adbbddf3a Bump timestamp. 2017-12-31 11:18:41 +11:00
Andrew Pinski
cb7fee107e * config.sub (-bme*): New.
* testsuite/config-sub.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2017-12-31 08:09:29 +11:00
Olivier Hainque
f5641da650 * config.sub: Map -pikeos to baremetal.
* testsuite/config-sub.data: Add tests for a few pikeos
	configuration variants.

Signed-off-by: Ben Elliston <bje@gnu.org>
2017-11-23 22:19:05 +11:00
Ben Elliston
76d2f0e6f6 Revert -- it's too soon to make this change.
* config.guess: Replace old-style `..` command substitution with
	the more modern $(..) form.
	* config.sub: Likewise.
2017-11-04 11:04:43 +11:00
Ben Elliston
b83ed0ee7b * config.sub (we32k): Remove duplicate case so that `we32k'
properly canonicalises to `we32k-att-sysv'.
	* testsuite/config-sub.data: Update test case.
2017-11-04 09:25:08 +11:00
Ben Elliston
cf2650fa94 * config.guess: Improve usage text.
* config.sub: Likewise.
2017-11-04 09:22:08 +11:00
Ben Elliston
a1aab4fe31 * config.guess: Replace old-style .. command substitution with
the more modern $(..) form.
	* config.sub: Likewise.
2017-11-03 22:21:08 +11:00
Ben Elliston
4e9ab51a54 * config.guess: Whitespace fixes.
* config.sub: Ditto.
2017-11-01 09:31:38 +11:00