839 Commits

Author SHA1 Message Date
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
Henri Menke
3d00f60242 * config.guess: Try to detect musl libc on GNU/Linux systems using
ldd --version.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-01-26 14:04:08 +11:00
Ben Elliston
827c77253b * config.guess: Use double quotes on any remaining unquoted
variables to prevent globbing and word splitting.
2018-01-16 18:09:53 +11:00
Ben Elliston
9ca5f17e49 * config.guess: Change most ${foo} expansions to "$foo" to:
(1) double quote to prevent globbing and word splitting; and
	(2) remove extraneous braces.
2018-01-16 12:06:26 +11:00
Ben Elliston
68b4eebf4d * config.guess: Quote $dummy.c, $dummy.o and $dummy to prevent
globbing and word splitting in the filename.
2018-01-16 11:32:22 +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
ae1acbbff7 * testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2018-01-13 21:11:12 +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
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
Henry Bent
c9092d0534 * config.guess (mips:OSF1:*:*): Recognise.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2017-12-17 14:03:06 +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
64198f12d8 Thanks to Urs Janßen.
* config.guess (mips:*:*:UMIPS | mips:*:*:RISCos): Fix typo.
2017-11-07 19:41:08 +11:00
Ben Elliston
3e66531146 Reported by Nelson H. F. Beebe:
* config.guess (*:MidnightBSD:*:*): Recognise.
	* testsuite/config-guess.data: Add a test case.
2017-11-07 14:14:17 +11:00
Ben Elliston
ef95b1db9b Also revert -- these parens were there for a reason. :-(
* config.guess: Remove unnecessary parentheses inside `..`
	command substitutions to improve clarity.
2017-11-05 11:33:30 +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
e37d556198 * config.guess: Remove unnecessary parentheses inside .. command
substitutions to improve clarity.
2017-11-03 21:09:41 +11:00
Ben Elliston
ddf1db93f3 * config.guess (i*86:SYSTEM_V:4.*:*): Remove pattern as this is
already matched by i*86:*:4.*:*.
2017-11-01 10:15:08 +11:00
Ben Elliston
e1e709f4a9 * config.guess (romp-ibm:4.4BSD:*): Correct pattern so that it
does not match romp-ibm:BSD:* in the immediately following case.
2017-11-01 10:06:21 +11:00
Ben Elliston
57406ae8e6 * config.guess (mips:*:*:UMIPS | mips:*:*:RISCos): Use explicit
escaping for \n.
2017-11-01 10:03:09 +11:00
Ben Elliston
4e9ab51a54 * config.guess: Whitespace fixes.
* config.sub: Ditto.
2017-11-01 09:31:38 +11:00
Ben Elliston
0e5095bc3b * config.sub (maybe_os): Remove redundant dpx2*-bull pattern.
Already matched by dpx2*.
2017-11-01 09:00:35 +11:00