594 Commits

Author SHA1 Message Date
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
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
b0cc4c6f78 * config.sub (shl): Recognise.
* testsuite/config-sub.data: Add a test case.
2019-01-05 00:19:05 +11:00
Ben Elliston
da03f82a82 * config.sub: Move v70, w65 and others into sort order. 2019-01-05 00:18:03 +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
c9fa258d05 Fix space before tab. 2019-01-04 06:38:07 +11:00
Ben Elliston
a2e10dfcf0 Disable Shellcheck warning SC2162 ("read without -r with mangle
backslashes") in two places. We can't easily resolve these.
2019-01-03 12:02:57 +11:00
Ben Elliston
c701dfb820 * config.guess: Update copyright years.
* config.sub: Likewise.
	* doc/config.guess.1: Regenerate.
	* doc/config.sub.1: Likewise.
2019-01-01 08:15:34 +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
Ben Elliston
9764df548d Revert 2018-05-05 change.
* config.sub: Don't pass the -r option to 'read'. Solaris 10 sh
	does not support -r.
2018-12-16 22:42:25 +11:00
Ben Elliston
058639be22 Bump timestamps. 2018-11-28 20:38:51 +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
Peter Kokot
653fbad91c * config.sub: Direct diagnostic output to standard error.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-20 20:34:28 +11:00
Urs Janßen
1c9a125dd0 * config.sub: Fix comment typos.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-17 10:38:21 +11:00
Ben Elliston
ceeb0d9e0f Bump timestamp. 2018-08-29 14:41:46 +10:00
John Ericson
d300aa0a31 * config.sub: Parse basic_machine into cpu and vendor. This adds
more lines, but makes a bunch of code simpler and easier to read.
	sed(1) is used a lot less, for example.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 10:06:03 +10:00
John Ericson
a6387dca6b * config.sub: More deduplication and organize more basic machines.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 10:04:02 +10:00
John Ericson
fc14426403 * config.sub: Deduplicate and organize more basic machines.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:59:08 +10:00
John Ericson
5948bb17e1 * config.sub: Remove redundant patterns from second `case
$basic_machine in`. The second case only needs to handle patterns
	of the form *-*. We can drop some patterns without a change in
	functionality.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:46:35 +10:00
John Ericson
fc12b1e453 * config.sub: Remove duplicates in the huge `case basic_machine
in` arms. These patterns whitelist canonical CPU types that are
	allowed with any vendor. The former arm accepts a provided vendor,
	and the latter arm defaults a vendor when none is provided. Split
	`case $basic_machine in` in to two, and then pre-default the
	missing vendor so that only the explicit-vendor rules are needed.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-28 09:42:04 +10: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
8ecdc3a878 * config.sub: Consolidate *-pc handling.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:41:12 +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
John Ericson
ddf4d5ca18 * config.sub: Consolidate some *-* patterns above big patterns.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-24 20:32:50 +10:00
John Ericson
ebd65bf58a * config.sub: Finish moving big patterns to the bottom.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-23 18:35:40 +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
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
John Ericson
7397e860d9 * config.sub: Move some erroneous foo-* aliases to be single
component aliases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-14 10:07:33 +10:00
John Ericson
b06a862db4 * config.sub: Make a few basic_machines short-hands only.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-13 14:28:54 +10:00
John Ericson
1ae6c5d42f * config.sub: Combine match arms.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-13 14:25:52 +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
019c1a9f7a Bump timestamp. 2018-08-12 21:55:13 +10:00
John Ericson
1eb41eb778 * config.sub (basic_machine): Move up manufacturer-defaulting
patterns.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-12 21:53:44 +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
ea0e5a6f5b * config.sub (tile*): Only set 'os' to -linux-gnu if unset.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-08 11:54:28 +10:00
John Ericson
437d5d59dc * config.sub (abacus, asmjs): Combine some redundant case arms.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-08 11:50:59 +10:00
John Ericson
1225baf116 * config.sub: Don't need 'os=${os:-none}' defaults because that is
already the default.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-08-08 11:48:35 +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
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
Ben Elliston
30d53fc428 Bump timestamp. 2018-07-13 10:00:13 +10:00
John Ericson
baaaa582bf * config.sub: Don't recognize every *-unknown as a basic_machine.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-07-13 09:58:06 +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
Ben Elliston
b47fd674df Update timestamp. 2018-07-02 23:43:07 +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
John Ericson
8b7ef99acd * config.sub: Consolidate $os checking.
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-24 14:58:59 +10:00
John Ericson
629b235120 * config.sub: Don't force basic_machine based on $os just for
"mint" and "clix".

I got rid of this forcing, as it can hide an error from the user and
is unlike how other OSes are handled. I added fallbacks for clix (MiNT
already had some) such that at least the following stil work:

  $ ./config.sub clipper-clix
  clipper-intergraph-clix

  $ ./config.sub m68k-mint
  m68k-atari-mint

  $ ./config.sub mint
  m68k-atari-mint

"clix" (as opposed to "nonsense-clix", ie. with at least one "-"
before) never worked, so I didn't add a short-hand to make it work
like "mint".

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-23 13:13:51 +10:00
John Ericson
437b9abd44 * config.sub: No more OS-driven substitution of -pc with sed.
I'm not sure why this was originally added. It's certainly not needed
anymore because the OS will never be duplicated onto the send of the
`basic_machine`.  If the user passed `unknown` or no vendor, this will
already be filled in. If they passed something more specific, it's
customary to respect that.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-23 12:59:07 +10:00
John Ericson
63fe500bb8 * config.sub: Simplify *-wrs handling.
"wrs" is just a vendor that can be handled with all the other vendor
exceptions for two-component cases. `wrs) os=vxworks` can instead be
put with the other OS defaults down below.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-23 11:33:44 +10:00