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
Ben Elliston
f5aba1772c
* testsuite/config-sub.data: Add more tests.
2018-08-24 20:31:06 +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
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
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
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
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
c0ba970d17
* testsuite/config-sub.data: Add some legacy test cases.
2018-08-13 10:10:23 +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
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
Ben Elliston
8de5d27282
* config.guess: Fix SC2234 diagnostic from Shellcheck ("Remove
...
superfluous (..) around test command". Also remove redirection as
test(1) should never produce any output.
2018-08-02 19:42:42 +10:00
Ben Elliston
05049e403e
* Makefile (check-guess, check-sub): Run tests under bash.
2018-07-30 09:57:40 +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
c85e3fc03c
From Apostolos Syropoulos <asyropoulos@gmail.com>:
...
* config.guess (i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*): Use the
isainfo(1) command to guess what kind of system we have. Running
isainfo -b returns either "32" or "64".
2018-07-19 08:04:09 +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
09da403c82
* config.guess (set_cc_for_build): Disable SC2039 ("In POSIX sh,
...
RANDOM is undefined").
* Makefile (shellcheck): Don't disable SC2039 globally.
2018-07-13 21:43:28 +10:00
Ben Elliston
a4b36a6939
* config.guess: Disable SC2154 and SC2172 Shellcheck warnings.
...
* Makefile (shellcheck): Don't disable SC2172 globally.
2018-07-13 21:37:46 +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
1e826a0344
* config.guess: Replace large 'set_cc_for_build' shell variable,
...
that is executed via eval, with a POSIX shell function.
* Makefile (shellcheck): Ignore SC2039 diagnostics ("In POSIX sh,
RANDOM is undefined") and SC2172 ("Trapping signals by number is
not well defined. Prefer signal names").
2018-07-12 07:56:15 +10:00
Ben Elliston
ba47464ef7
* config.guess (set_cc_for_build): Suppress possible mkdir output.
2018-07-06 22:45:59 +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
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
John Ericson
8b7ef99acd
* config.sub: Consolidate $os checking.
...
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-05-24 14:58:59 +10:00
Ben Elliston
44afabad0c
Revert "Fix top of file comments."
...
This reverts commit ed15654af036a976f82c4503eb81c1a44e55bd3c.
2018-05-23 13:22:23 +10:00