309 Commits

Author SHA1 Message Date
Ben Elliston
04b07fc6d9 * testsuite/config-sub.data: Add some old Pentium test cases. 2019-08-04 09:38:47 +10:00
Ben Elliston
d3bfe62ac8 This change introduces a new test to config-sub.sh which runs every
config.guess expected triplet through config.sub so that we can check
that it is properly recognised. Sometimes, new triplets have been
added to config.guess without updating config.sub accordingly (eg,
Harris NightHawk machines running PowerUnix from the mid-1990s!)

	* config.sub (case $os): Match nsk* and powerunix. Don't later
	match nsk* and set os=nsk which removes the OS version number.
	* testsuite/config-guess.data: Tweak Unleashed test case.
	* testsuite/config-sub.sh (run_config_sub_with_guess_triplets):
	New test.
2019-06-30 16:39:33 +10:00
Ben Elliston
854aa79378 * config.sub: Recognise os108*.
* testsuite/config-sub.data: Add a test case.
2019-06-30 10:02:45 +10:00
Ben Elliston
717418e698 * testsuite/config-sub.data: Many more missing test cases.
* config.sub (hp300): Set $os to hpux.

nb: The config.sub bug was found after writing hp300 test cases.
2019-06-26 13:29:37 +10:00
Ben Elliston
1854fb9ed1 * testsuite/config-sub.data: Add some missing test cases. 2019-06-26 11:03:58 +10:00
Ben Elliston
f83dbaa146 * config.guess (*:OS108:*:*): Recognise new OS.
* testsuite/config-guess.data: Add a test case.
2019-06-10 23:36:57 +10:00
Ben Elliston
6fd2f9bf82 * Makefile (sort): New target.
* testsuite/config-guess.data: Sort.
	* testsuite/config-sub.data: Likewise.
2019-06-04 09:48:27 +10:00
Ben Elliston
104ee6463c * testsuite/config-guess.data: Add Darwin tests. 2019-05-28 15:30:53 +10:00
Ben Elliston
bad92f031d Revert. Fix extraneous 'fi'. 2019-05-28 15:29:39 +10:00
Ben Elliston
0e33211d96 * testsuite/config-guess.data: Add Darwin tests. 2019-05-28 13:49:39 +10:00
Jose E. Marchesi
55eaf3e779 * config.sub (bpf): Recognise.
* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-05-23 11:27:51 +10:00
John Ericson
a8d79c3130 * config.sub (wasm64, wasi): Recognise.
* testsuite/config-sub.data: Add test cases for wasm (Web Assembly) and
	wasi (Web Assembly System Interface).

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-04-15 08:57:26 +10:00
Ben Elliston
a7dc12fa30 * testsuite/config-sub.data: Sort. 2019-03-29 08:32:47 +11:00
Urs Janßen
d495b0fc6b * config.sub: Recognize m68k-next-openstep* as openstep*, not
nextstep3.
	* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-03-29 08:31:13 +11:00
Ben Elliston
f6872aecd5 Revert " * Makefile (check-guess): Don't remove uname here."
This reverts commit f34dacb3462ca1b390e70b090dbeafbdca7ce28a.
2019-03-23 22:09:04 +11:00
Ben Elliston
f34dacb346 * Makefile (check-guess): Don't remove uname here.
* testsuite/config-guess.sh (run_config_guess): Remove dummy uname
	script if the test passes (if not, the script is left behind for
	inspection).
2019-03-23 22:07:56 +11:00
Ben Elliston
8999a781ce * testsuite/config-sub.sh (run_one_config_sub): New.
(run_one_config_sub_idempotent): Likewise.
	(run_config_sub): Parallelise test cases.
	(run_config_sub_idempotent): Likewise.
2019-03-23 16:59:09 +11:00
Ben Elliston
286a38db91 This change silences a false positive from Shellcheck:
"Redirecting to/from command name instead of file. Did you want
   pipes/xargs (or quote to ignore)? [SC2238]"

	* testsuite/config-guess.sh (run_config_guess): For clarity, write
	uname replacement to './uname', not 'uname'.
2019-01-20 21:03:48 +11:00
Ben Elliston
b0cc4c6f78 * config.sub (shl): Recognise.
* testsuite/config-sub.data: Add a test case.
2019-01-05 00:19:05 +11:00
Ben Elliston
210e50d643 * config.sub (mips64eb): Recognise.
* testsuite/config-sub.data: Add a test case for mips64eb.
2019-01-04 17:21:13 +11:00
Ben Elliston
42ddb154fe * testsuite/config-guess.data: Add more test cases. 2019-01-03 15:11:46 +11:00
Ben Elliston
d49c7de1e8 * testsuite/config-guess.data: Add a test for ARM Linux. 2019-01-03 11:21:21 +11:00
Ben Elliston
a58cd1856a * testsuite/config-guess.data: Add new tests for Solaris on i386
and SPARC machines.
2019-01-03 11:13:53 +11:00
Ben Elliston
d0452dbb43 * testsuite/config-guess.sh (run_config_guess): Set CC_FOR_BUILD
to no_compiler_found so that we don't erroneously use the compiler
	of the host running the testsuite.
	* testsuite/config-guess.data: Adjust ARM FreeBSD expected output.
2019-01-03 11:09:27 +11:00
Keno Fischer
b3914f8d55 * config.sub (*-emscripten): Recognise.
* testsute/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-31 14:18:43 +11:00
Lauri Tirkkonen
dbd9d383bd * config.guess (*:Unleashed:*:*): New.
* config.sub (unleashed*): New.
	* testsuite/config-sub.data: Add a test case.
	* testsuite/config-guess.data: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-26 22:04:32 +11:00
Andrew Stubbs
7e97ab3987 * config.sub (amdgnu-amdhsa): Recognise.
* testsuite/config-sub.data: Test amdgcn-amdhsa.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-11-20 09:18:57 +11:00
Ben Elliston
2fa97a8a0e * config.guess (amd64:CYGWIN*:*:*, x86_64:CYGWIN*:*:*): Set
manufacturer to 'pc'.
	* testsuite/config-guess.data: Update test cases.
2018-10-26 11:21:25 +11:00
Ben Elliston
b8ee5f7994 From Justin Hibbits:
* config.sub (powerpcspe, powerpcspe-*): New.
	* testsuite/config-sub.data: Add test cases.
2018-08-24 20:54:40 +10:00
John Ericson
478579434f * config.sub (cr16-*): Do not clobber vendor.
* testsuite/config-sub.data (cr16-random-elf): Adjust test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:36:55 +10:00
Ben Elliston
f5aba1772c * testsuite/config-sub.data: Add more tests. 2018-08-24 20:31:06 +10:00
John Ericson
890df4376b * config.sub: Move the big patterns to the bottom in preparation
for de-duplication. It causes Shellcheck to see more overlapping
	patterns. Fix miscellaneous problems identified by Shellcheck.
	* testsuite/config-sub.data: Adjust tests.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-20 17:36:53 +10:00
John Ericson
0e62f680f8 * testsuite/config-sub.data: Add legacy test cases.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-20 16:45:39 +10:00
John Ericson
588e779320 * config.sub (sequent): Make this a one-component alias.
* testsuite/config-sub.data (sequent-ptx): Adjust test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-14 10:11:14 +10:00
Ben Elliston
0b99e39a4e * testsuite/config-sub.data: Add legacy test cases for cydra,
da30, dec3100, decstation, decstation-3100, decstatn, orion, pc98,
	pmin, pmax, romp, rs6000, vax, x64, xps and xps100.
2018-08-13 20:25:15 +10:00
John Ericson
f4f9b29a8c * config.sub (craynv): Move back as a basic_machine pattern.
* testsuite/config-sub.data: Add test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-13 14:17:53 +10:00
Ben Elliston
c0ba970d17 * testsuite/config-sub.data: Add some legacy test cases. 2018-08-13 10:10:23 +10:00
John Ericson
ad274839e2 * config.sub: Eliminate some dead code for SH targets.
* testsuite/config-sub.data: Add tests for sh2ele and sh2ele-elf.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-08 14:00:07 +10:00
John Ericson
08ede0dcc1 * testsuiteb/config-sub.sh (run_config_sub_idempotent): New.
* config.sub: Fixes to pass the testsuite.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-08 11:45:12 +10:00
John Ericson
dbe15d73a8 * testsuite/config-guess.sh: Make 'rc' a local variable.
* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-03 18:03:14 +10:00
John Ericson
f52be464ee * testsuite/config-guess.sh: Re-indent with tabs.
* testsuite/config-sub.sh: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-02 21:19:03 +10:00
John Ericson
4761c20494 * config.sub: Fix some more i386-pc-* defaults.
* testsuite/config-sub.data: Update.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-07-25 12:26:00 +10:00
Mikaël Urankar
afe1fa96bf * config.guess (arm*:FreeBSD:*:*): New.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-07-18 22:38:44 +10:00
Ben Elliston
5c3c4a9647 * testsuite/config-guess.data: Sort. 2018-07-15 10:50:45 +10:00
Ben Elliston
9f9b3d365a * testsuite/config-guess.sh: Strip off spaces around pipe
delimiter as test data is read in.
	(run_config_guess): Set IFS to '|'.
	* testsuite/config-guess.data: Use ' | ' as the delimeter.
2018-07-13 22:20:28 +10:00
Ben Elliston
dd5d5dd697 * config.sub: Do not rewrite riscv -> riscv32.
* testsuite/config-sub.data: Adjust tests.
2018-07-03 21:18:29 +10:00
Sevan Janiyan
0388bdcb11 * config.guess (*:Minix:*:*): Accept any machine.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-06-26 11:54:17 +10:00
Palmer Dabbelt
a06fbed616 * config.sub: Add riscv-* as an alias for riscv32-*.
* testsuite/config-sub.data: Add tests.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-06-22 09:28:40 +10:00
Ben Elliston
3a2a927f54 * testsuite/config-sub.data: Add tests for Sequent and DYNIX/ptx. 2018-05-24 18:25:10 +10:00
Ben Elliston
44afabad0c Revert "Fix top of file comments."
This reverts commit ed15654af036a976f82c4503eb81c1a44e55bd3c.
2018-05-23 13:22:23 +10:00