123 Commits

Author SHA1 Message Date
Dmitry V. Levin
daf828df3d testsuite/config-guess.data: remove SecBSD test
Sadly,  the test infrastructure is not ready for guesses based on the
output of "arch" yet.

* testsuite/config-guess.data: Remove SecBSD test.
2021-05-05 20:00:00 +00:00
Vineet Gupta
491e04557e Recognize arc64
This paves way for setting up arc64 software ecosystem.

$ make check
cd testsuite && bash config-guess.sh && rm uname
PASS: config.guess checks (136 tests)
cd testsuite && bash config-sub.sh
PASS: config.sub checks (853 tests)
PASS: config.sub idempotency checks (790 tests)
PASS: config.sub canonicalise each config.guess testcase (136 tests)

* config.guess (arc64:Linux:*:*): Recognize.
* config.sub (arc64): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add a test case for arc64.
* testsuite/config-sub.data (arc64, arc*-elf): Add test cases.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2021-04-21 19:51:18 +00:00
Purple Rain
6c5532f345 config.guess: add SecBSD support
* config.guess (*:SecBSD:*:*): Recognize.
* doc/config.guess.1: Regenerate.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2021-04-16 22:26:32 +00:00
Dmitry V. Levin
277b4ed177 testsuite: make config data sorted using "make sort"
* testsuite/config-guess.data: Make the data sorted.
* testsuite/config-sub.data: Likewise.
2021-03-10 20:00:00 +00:00
Kalamatee
6faca61810 config.guess: update AROS system detection
* config.guess: Recognize *:AROS:*:*.
* doc/config.guess.1: Regenerate.
* testsuite/config-guess.data: Add test cases.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2021-01-25 20:35:13 +00:00
Kito Cheng
8e0c6ffd5c Recognize riscv32be and riscv64be
Recently RISC-V community got patches big-endian support for binutils,
and we'd like to accept that, however before accepting that I think it
would be better to upstream config.sub and config.guess change here :)

It's my check result on Ubuntu 18.04:

 $ make check
 cd testsuite && bash config-guess.sh && rm uname
 PASS: config.guess checks (131 tests)
 cd testsuite && bash config-sub.sh
 PASS: config.sub checks (830 tests)
 PASS: config.sub idempotency checks (767 tests)
 PASS: config.sub canonicalise each config.guess testcase (131 tests)

* config.guess (riscv32be:Linux:*:*, riscv64be:Linux:*:*): Recognize.
* config.sub (riscv32be, riscv64be): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add test cases for riscv32be, and riscv64be.
* testsuite/config-sub.data (riscv32be, riscv64be): Add test cases.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2020-12-31 07:27:52 +00:00
Xiaotian Wu
c8ddc8472f Recognize loongarch32, loongarch64, and loongarchx32
* config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*,
loongarchx32:Linux:*:*): Recognize.
* config.sub (loongarch32, loongarch64, loongarchx32): Likewise.
* doc/config.guess.1: Regenerate.
* doc/config.sub.1: Likewise.
* testsuite/config-guess.data: Add test cases for loongarch32,
loongarch64, and loongarchx32.
* testsuite/config-sub.data (loongarch32, loongarch64, loongarchx32):
Add test cases.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2020-12-22 08:00:00 +00:00
Dmitry V. Levin
05734c3b30 testsuite: make config data sorted using "make sort"
* Makefile (sort): Add dependencies, sort in C locale using "sort -u".
* testsuite/config-guess.data: Make the data sorted.
* testsuite/config-sub.data: Likewise.
2020-12-22 08:00:00 +00:00
Rin Okuyama
1c43980155 * config.guess (*:NetBSD:*:*): Handle aarch64eb.
* testsuite/config-guess.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2020-10-22 00:05:38 +11:00
Ben Elliston
2593751ef2 * config.guess (arm64:Darwin:*:*): Recognise.
* testsuite/config-guess.data: Add a test case.
2020-07-12 18:21:33 +10:00
Ben Elliston
1912ca5041 * testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2019-09-12 20:45:58 +10:00
Daniel Bittman
fadac5a0ed * config.guess (*:Twizzler:*:*): New.
* config.sub (-twizzler*): New.
	* testsuite/config-guess.data: Add test cases.
	* testsuite/config-sub.data: Ditto.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-09-12 09:56:40 +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
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
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
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
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
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
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
Ben Elliston
ae1acbbff7 * testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2018-01-13 21:11:12 +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
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
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
554e3feb15 * config.sub (maybe_os): Remove -windowsnt*.
* config.guess (Alpha\ *:Windows_NT*:*): Remove obsolete case.
	(21064:Windows_NT:50:3): Likewise.
	(i*:windows32*:*): Likewise.
	([345]86:Windows_95:*, [345]86:Windows_98:*): Likewise.
	([345]86:Windows_NT:*): Likewise.
	(8664:Windows_NT:*): Likewise.
	(i*:Windows_NT*:* | Pentium*:Windows_NT*:*): Likewise.
	(p*:CYGWIN*:*): Likewise.
	* testsuite/config-guess.data: Remove relevant test cases.
2017-09-12 11:52:17 +10:00
Ben Elliston
c268e85591 * testsuite/config-guess.data: Sort. 2017-08-26 20:32:22 +10:00
Ian Douglas Scott
636f39d3a3 * config.guess (*:Redox:*:*): New.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2017-08-08 18:54:55 +10:00
Ben Elliston
281c61b32f * config.guess (NSR-*:NONSTOP_KERNEL:*:*): Match suffix with *.
(NEO-*:NONSTOP_KERNEL:*:*): Likewise.
	* testsuite/config-guess.data: Add test cases.
2017-05-11 20:36:27 +10:00
Ben Elliston
53c0fcc404 Reported by Hugues Lefebvre <hugues.lefebvre@lusis.fr>.
* config.guess (NSX-*:NONSTOP_KERNEL:*:*): Some L-SERIES systems
	now have more than one letter in the suffix, so match with *.
	* testsuite/config-guess.data: Add a test case.
2017-05-11 09:50:56 +10:00
Ben Elliston
2fbde7c1b5 Reported by Hugues Lefebvre <hugues.lefebvre@lusis.fr>.
* config.guess (NSX-?:NONSTOP_KERNEL:*:*): New.
	* config.sub (nsx-tandem): New.
	* testsuite/config-guess.data: Add a test case.
	* testsuite/config-sub.data: Likewise.
2017-02-07 05:55:13 +11:00
Ben Elliston
d10311a2ed * testsuite/config-guess.data: Align columns. 2016-12-28 00:26:32 +11:00
Ben Elliston
d106f34d67 * testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2016-12-27 19:55:50 +11:00
Ben Elliston
084a407660 * config.guess (mips64el:Linux:*:*): New.
* testsuite/config-guess.data: Add a test case.
2016-10-03 12:48:54 +11:00
David Abdurachmanov
9152ce4032 * config.guess (riscv32:Linux:*:*, riscv64:Linux:*:*): New.
* testsuite/config-guess.data: Add riscv32, riscv64.

Signed-off-by: Ben Elliston <bje@gnu.org>
2016-09-11 09:59:56 +10:00
Ben Elliston
562f3512b3 * testsuite/config-guess.data: Add ppc64le test case. 2016-07-07 06:46:27 +10:00
Luis Kornblueh
081b46702f * config.guess (SX-ACE:SUPER-UX:*:*): New.
* testsuite/config-guess.data: Add a test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-24 19:40:55 +11:00
Ben Elliston
44bd5675f4 Reported by Owen Urkov <owen@asperasoft.com>.
* config.guess (amd64:Isilon OneFS:*:*): New.
	* config.sub (-onefs*): New.
	* testsuite/config-guess.data: Add a test case.
	* testsuite/config-sub.data: Likewise.
2015-11-19 14:30:10 +11:00
Ben Elliston
869aecc8c8 * config.guess (k1om:Linux:*:*): New.
* testsuite/config-guess.data: Add a test case.

	Reported by Jan Stypka <jasieek@student.agh.edu.pl>.
2015-09-14 09:50:28 +10:00
Jonas 'Sortie' Termansen
c4d5b5f44e * config.guess (*:Sortix:*:*): New.
* config.sub (-sortix*): New.

Signed-off-by: Ben Elliston <bje@gnu.org>
2015-08-20 13:55:56 +10:00
宋冬生
9c63d2fafe * config.guess (*:NetBSD:*:*): Use only the major release and
minor release number in the triplet.
	* testsuite/config-guess.data: Add new tests.

Signed-off-by: Ben Elliston <bje@gnu.org>
2015-07-03 15:07:38 +10:00
Alexandre Oliva
ca9bfb8cc7 * config.guess (x86_64:Linux:*:*): Output 'pc', not 'unknown'.
* testsuite/config-guess.data: Update test case.

Signed-off-by: Ben Elliston <bje@gnu.org>
2015-06-30 17:26:58 +10:00
Dmitry V. Levin
9c71dc568d * config.guess (e2k:Linux:*:*): New.
* config.sub (e2k, e2k-*): New.
	* testsuite/config-guess.data: Add a test case.
	* testsuite/config-sub.data: Likewise.

Signed-off-by: Ben Elliston <bje@gnu.org>
2015-03-04 12:25:30 +11:00