Here are the last 3 patches, revised

Yes the * is probably just a cut and paste artifact. I suppose it is harmless and could hint to the human what the expected behavior, but for simplicity I just removed it. The crx- * test I deleted from the first patch too. That leaves the 1st patch working properly.

The 2nd patch is exactly as before. It still breaks things, but that is intentional, with the 3rd patch fixing the breakage and the crx test instead. I could have combined them, but I suspect they'll be easier to read separately so I kept them separate. If you want to apply them together that is fine with me.

Thanks,

John


On 08/20/18 00:34, Ben Elliston wrote:
On Tue, Aug 14, 2018 at 01:53:37PM -0400, John Ericson wrote:

Message-Id: 
<7aa195016503d03125cdcbaf0a53788322ea7dc6.1534269204.git.John.Ericson@Obsidian.Systems>
From: John Ericson <John.Ericson@Obsidian.Systems>
Date: Tue, 14 Aug 2018 13:25:58 -0400
Subject: [PATCH 1/2]     * testsuite/config-sub.data: Add legacy test cases
To: config-patches@gnu.org
This is a bit weird:

@@ -140,8 +142,13 @@ dec3100                                            
mips-dec-ultrix4.2
  decstation                                    mips-dec-ultrix4.2
  decstation-3100                                       mips-dec-ultrix4.2
  decstatn                                      mips-dec-ultrix4.2
+decsystem10*                                   pdp10-dec-tops10
+dec10*                                         pdp10-dec-tops10
+decsystem20*                                   pdp10-dec-tops20
+dec20*                                         pdp10-dec-tops20
  dicos                                         i686-pc-dicos
Why are you adding test cases with asterisks in them?  Looks like too
much copying and pasting?

Also, the revised testsuite does not pass:

Invalid configuration `crx-unknown-elf': machine `crx-unknown' not recognized
FAIL: crx-unknown-elf -> , but crx-unknown-elf should map to itself

Please remove the failing tests until you submit a patch that fixes
the problem (and the test case can accompany that patch).

Thanks,
Ben

>From 8186ffa46fa80dc9bdfc9824225bdeb99bfa33b2 Mon Sep 17 00:00:00 2001
Message-Id: 
<8186ffa46fa80dc9bdfc9824225bdeb99bfa33b2.1534744813.git.John.Ericson@Obsidian.Systems>
From: John Ericson <John.Ericson@Obsidian.Systems>
Date: Tue, 14 Aug 2018 13:25:58 -0400
Subject: [PATCH 1/3]     * testsuite/config-sub.data: Add legacy test cases
To: config-patches@gnu.org

---
 ChangeLog                 |  4 ++++
 testsuite/config-sub.data | 19 +++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index b06386f..0703309 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-08-14  John Ericson  <john.ericson@obsidian.systems>
+
+       * testsuite/config-sub.data: Add legacy test cases
+
 2018-08-14  John Ericson  <john.ericson@obsidian.systems>
 
        * config.sub (sequent): Make this a one-component alias.
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 2c6771a..266175d 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -122,6 +122,7 @@ c6x-unknown-coff                            
tic6x-unknown-coff
 c6x-unknown-elf                                        tic6x-unknown-elf
 c8051                                          c8051-unknown-elf
 c8051-elf                                      c8051-unknown-elf
+c90                                            c90-cray-unicos
 cegcc                                          arm-unknown-cegcc
 clipper                                                clipper-unknown-none
 clipper-clix                                   clipper-intergraph-clix
@@ -140,8 +141,13 @@ dec3100                                            
mips-dec-ultrix4.2
 decstation                                     mips-dec-ultrix4.2
 decstation-3100                                        mips-dec-ultrix4.2
 decstatn                                       mips-dec-ultrix4.2
+decsystem10                                    pdp10-dec-tops10
+dec10                                          pdp10-dec-tops10
+decsystem20                                    pdp10-dec-tops20
+dec20                                  pdp10-dec-tops20
 dicos                                          i686-pc-dicos
 djgpp                                          i586-pc-msdosdjgpp
+dpx2xxx                                                m68k-bull-sysv3
 dlx                                            dlx-unknown-none
 dsp16xx                                                dsp16xx-unknown-none
 e2k                                            e2k-unknown-none
@@ -151,6 +157,10 @@ e500v2-elf                                 
powerpc-unknown-elfspe
 e500v2-vxworksae                               powerpc-wrs-vxworksaespe
 e500v2-wrs-linux                               powerpc-wrs-linux-gnuspe
 e500v2-wrs-vxworks                             powerpc-wrs-vxworksspe
+elxsi                                          elxsi-elxsi-bsd
+encore                                         ns32k-encore-bsd
+umax                                           ns32k-encore-bsd
+mmax                                           ns32k-encore-bsd
 epiphany-elf                                   epiphany-unknown-elf
 epiphany                                       epiphany-unknown-none
 es1800                                         m68k-ericsson-ose
@@ -162,6 +172,7 @@ frv-linux                                   
frv-unknown-linux-gnu
 ft32-elf                                       ft32-unknown-elf
 ft32                                           ft32-unknown-none
 fx80                                           fx80-alliant-none
+genix                                          ns32k-ns-genix
 h8300                                          h8300-unknown-none
 h8500                                          h8500-unknown-none
 hcs12z                                         s12z-unknown-none
@@ -170,6 +181,10 @@ hexagon-linux                                      
hexagon-unknown-linux-gnu
 hppa1.0                                                hppa1.0-unknown-none
 hppa2.0                                                hppa2.0-unknown-none
 hppa2.0n                                       hppa2.0n-unknown-none
+hp3k900                                        hppa1.0-hp-hpux
+hp900                                          hppa1.0-hp-hpux
+hp9k200                                        m68000-hp-hpux
+hp9k310                                        m68000-hp-hpux
 hppa64                                         hppa64-unknown-none
 hppa                                           hppa-unknown-none
 hppa-next                                      hppa-next-nextstep
@@ -231,6 +246,10 @@ ia64                                               
ia64-unknown-none
 ibm                                            i370-ibm-aix
 ip2k                                           ip2k-unknown-none
 iq2000                                         iq2000-unknown-none
+iris                                           mips-sgi-irix4
+iris4d                                         mips-sgi-irix4
+j90                                            j90-cray-unicos
+j90-unicos                                     j90-cray-unicos
 k1om                                           k1om-unknown-none
 k1om-linux                                     k1om-unknown-linux-gnu
 le32                                           le32-unknown-none
-- 
2.18.0

>From 64e099bcd4125e92f2b51bf7679866da8678e97b Mon Sep 17 00:00:00 2001
Message-Id: 
<64e099bcd4125e92f2b51bf7679866da8678e97b.1534744813.git.John.Ericson@Obsidian.Systems>
In-Reply-To: 
<8186ffa46fa80dc9bdfc9824225bdeb99bfa33b2.1534744813.git.John.Ericson@Obsidian.Systems>
References: 
<8186ffa46fa80dc9bdfc9824225bdeb99bfa33b2.1534744813.git.John.Ericson@Obsidian.Systems>
From: John Ericson <John.Ericson@Obsidian.Systems>
Date: Tue, 14 Aug 2018 13:35:59 -0400
Subject: [PATCH 2/3]     * config.sub: Move the big patterns to the bottom
To: config-patches@gnu.org

---
 ChangeLog  |   8 +
 config.sub | 422 +++++++++++++++++++++++++++--------------------------
 2 files changed, 220 insertions(+), 210 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0703309..aacaf9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-08-14  John Ericson  <john.ericson@obsidian.systems>
+
+       * config.sub: Move the big patterns to the bottom
+
+       This is done in preparation for deduplication. It causes shellcheck
+       to see more overlapping patterns, and breaks some tests. I need
+       somebody else to resolve the fallout and then I can procede.
+
 2018-08-14  John Ericson  <john.ericson@obsidian.systems>
 
        * testsuite/config-sub.data: Add legacy test cases
diff --git a/config.sub b/config.sub
index 6e8fa65..7df77e0 100755
--- a/config.sub
+++ b/config.sub
@@ -699,222 +699,13 @@ case $basic_machine in
                basic_machine=xps100-honeywell
                ;;
 
-       # Recognize the basic CPU types without company name.
-       # Some are omitted here because they have special meanings below.
-       1750a | 580 \
-       | a29k \
-       | aarch64 | aarch64_be \
-       | abacus \
-       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
-       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | 
alpha64pca5[67] \
-       | am33_2.0 \
-       | arc | arceb \
-       | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | 
armv[78][arm] \
-       | avr | avr32 \
-       | asmjs \
-       | ba \
-       | be32 | be64 \
-       | bfin \
-       | c4x | c8051 | clipper | csky \
-       | d10v | d30v | dlx | dsp16xx \
-       | e2k | epiphany \
-       | fido | fr30 | frv | ft32 \
-       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
-       | hexagon \
-       | i370 | i860 | i960 | ia16 | ia64 \
-       | ip2k | iq2000 \
-       | k1om \
-       | le32 | le64 \
-       | lm32 \
-       | m32c | m32r | m32rle | m68000 | m68k | m88k \
-       | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
-       | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
-       | mips | mipsbe | mipseb | mipsel | mipsle \
-       | mips16 \
-       | mips64 | mips64el \
-       | mips64octeon | mips64octeonel \
-       | mips64orion | mips64orionel \
-       | mips64r5900 | mips64r5900el \
-       | mips64vr | mips64vrel \
-       | mips64vr4100 | mips64vr4100el \
-       | mips64vr4300 | mips64vr4300el \
-       | mips64vr5000 | mips64vr5000el \
-       | mips64vr5900 | mips64vr5900el \
-       | mipsisa32 | mipsisa32el \
-       | mipsisa32r2 | mipsisa32r2el \
-       | mipsisa32r6 | mipsisa32r6el \
-       | mipsisa64 | mipsisa64el \
-       | mipsisa64r2 | mipsisa64r2el \
-       | mipsisa64r6 | mipsisa64r6el \
-       | mipsisa64sb1 | mipsisa64sb1el \
-       | mipsisa64sr71k | mipsisa64sr71kel \
-       | mipsr5900 | mipsr5900el \
-       | mipstx39 | mipstx39el \
-       | mn10200 | mn10300 \
-       | moxie \
-       | mt \
-       | msp430 \
-       | nds32 | nds32le | nds32be \
-       | nfp \
-       | nios | nios2 | nios2eb | nios2el \
-       | ns16k | ns32k \
-       | open8 | or1k | or1knd | or32 \
-       | pdp10 | pj | pjl \
-       | powerpc | powerpc64 | powerpc64le | powerpcle \
-       | pru \
-       | pyramid \
-       | riscv | riscv32 | riscv64 \
-       | rl78 | rx \
-       | score \
-       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | 
shbe | shle | sh[1234]le | sh[23]ele \
-       | sh64 | sh64le \
-       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | 
sparclite \
-       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
-       | spu \
-       | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
-       | ubicom32 \
-       | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
-       | visium \
-       | wasm32 \
-       | x86 | xc16x | xstormy16 | xgate | xtensa \
-       | z8k | z80)
-               basic_machine=$basic_machine-unknown
-               ;;
-       c54x)
-               basic_machine=tic54x-unknown
-               ;;
-       c55x)
-               basic_machine=tic55x-unknown
-               ;;
-       c6x)
-               basic_machine=tic6x-unknown
-               ;;
-       leon|leon[3-9])
-               basic_machine=sparc-$basic_machine
-               ;;
-       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
-               ;;
-       m9s12z | m68hcs12z | hcs12z | s12z)
-               basic_machine=s12z-unknown
-               ;;
-       m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
-               basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'`
-               ;;
-       ms1)
-               basic_machine=mt-unknown
-               ;;
-       strongarm | thumb | xscale)
-               basic_machine=arm-unknown
-               ;;
-       xscaleeb)
-               basic_machine=armeb-unknown
-               ;;
-
-       xscaleel)
-               basic_machine=armel-unknown
-               ;;
-
        # We use `pc' rather than `unknown'
        # because (1) that's what they normally are, and
        # (2) the word "unknown" tends to confuse beginning users.
        i*86 | x86_64)
          basic_machine=$basic_machine-pc
          ;;
-       # Recognize the basic CPU types with company name.
-       1750a-* | 580-* \
-       | a29k-* \
-       | aarch64-* | aarch64_be-* \
-       | abacus-* \
-       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
-       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
-       | alphapca5[67]-* | alpha64pca5[67]-* \
-       | am33_2.0-* \
-       | arc-* | arceb-* \
-       | arm-*  | arm[lb]e-* | arme[lb]-* | armv*-* \
-       | avr-* | avr32-* \
-       | asmjs-* \
-       | ba-* \
-       | be32-* | be64-* \
-       | bfin-* | bs2000-* \
-       | c[123]* | c30-* | [cjt]90-* | c4x-* \
-       | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
-       | d10v-* | d30v-* | dlx-* | dsp16xx-* \
-       | e2k-* | elxsi-* | epiphany-* \
-       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | ft32-* | fx80-* \
-       | h8300-* | h8500-* \
-       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
-       | hexagon-* \
-       | i370-* | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
-       | ip2k-* | iq2000-* \
-       | k1om-* \
-       | le32-* | le64-* \
-       | lm32-* \
-       | m32c-* | m32r-* | m32rle-* \
-       | m5200-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | 
v70-* | w65-* \
-       | m6811-* | m68hc11-* | m6812-* | m68hc12-* | m68hcs12x-* | nvptx-* | 
picochip-* \
-       | m88110-* | m88k-* | maxq-* | mb-* | mcore-* | mep-* | metag-* \
-       | microblaze-* | microblazeel-* \
-       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
-       | mips16-* \
-       | mips64-* | mips64el-* \
-       | mips64octeon-* | mips64octeonel-* \
-       | mips64orion-* | mips64orionel-* \
-       | mips64r5900-* | mips64r5900el-* \
-       | mips64vr-* | mips64vrel-* \
-       | mips64vr4100-* | mips64vr4100el-* \
-       | mips64vr4300-* | mips64vr4300el-* \
-       | mips64vr5000-* | mips64vr5000el-* \
-       | mips64vr5900-* | mips64vr5900el-* \
-       | mipsisa32-* | mipsisa32el-* \
-       | mipsisa32r2-* | mipsisa32r2el-* \
-       | mipsisa32r6-* | mipsisa32r6el-* \
-       | mipsisa64-* | mipsisa64el-* \
-       | mipsisa64r2-* | mipsisa64r2el-* \
-       | mipsisa64r6-* | mipsisa64r6el-* \
-       | mipsisa64sb1-* | mipsisa64sb1el-* \
-       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
-       | mipsr5900-* | mipsr5900el-* \
-       | mipstx39-* | mipstx39el-* \
-       | mmix-* \
-       | mn10200-* | mn10300-* \
-       | moxie-* \
-       | mt-* \
-       | msp430-* \
-       | nds32-* | nds32le-* | nds32be-* \
-       | nfp-* \
-       | nios-* | nios2-* | nios2eb-* | nios2el-* \
-       | none-* | np1-* | ns16k-* | ns32k-* \
-       | open8-* \
-       | or1k*-* \
-       | or32-* \
-       | orion-* \
-       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
-       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
-       | pru-* \
-       | pyramid-* \
-       | riscv-* | riscv32-* | riscv64-* \
-       | rl78-* | romp-* | rs6000-* | rx-* \
-       | score-* \
-       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]ae[lb]-* | sh[23]e-* | 
she[lb]-* | sh[lb]e-* \
-       | sh[1234]e[lb]-* |  sh[12345][lb]e-* | sh[23]ele-* | sh64-* | sh64le-* 
\
-       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | 
sparclet-* \
-       | sparclite-* \
-       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
-       | spu-* \
-       | tahoe-* \
-       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
-       | tron-* \
-       | ubicom32-* \
-       | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
-       | vax-* \
-       | visium-* \
-       | wasm32-* \
-       | we32k-* \
-       | x86-* | x86_64-* | xc16x-* | xgate-* | xps100-* \
-       | xstormy16-* | xtensa*-* \
-       | ymp-* \
-       | z8k-* | z80-*)
-               ;;
+
        # Recognize the basic CPU types without company name, with glob match.
        xtensa*)
                basic_machine=$basic_machine-unknown
@@ -1290,6 +1081,217 @@ case $basic_machine in
                basic_machine=none-none
                ;;
 
+       # Recognize the basic CPU types with company name.
+       1750a-* | 580-* \
+       | a29k-* \
+       | aarch64-* | aarch64_be-* \
+       | abacus-* \
+       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+       | alphapca5[67]-* | alpha64pca5[67]-* \
+       | am33_2.0-* \
+       | arc-* | arceb-* \
+       | arm-*  | arm[lb]e-* | arme[lb]-* | armv*-* \
+       | avr-* | avr32-* \
+       | asmjs-* \
+       | ba-* \
+       | be32-* | be64-* \
+       | bfin-* | bs2000-* \
+       | c[123]* | c30-* | [cjt]90-* | c4x-* \
+       | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
+       | d10v-* | d30v-* | dlx-* | dsp16xx-* \
+       | e2k-* | elxsi-* | epiphany-* \
+       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | ft32-* | fx80-* \
+       | h8300-* | h8500-* \
+       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+       | hexagon-* \
+       | i370-* | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
+       | ip2k-* | iq2000-* \
+       | k1om-* \
+       | le32-* | le64-* \
+       | lm32-* \
+       | m32c-* | m32r-* | m32rle-* \
+       | m5200-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | 
v70-* | w65-* \
+       | m6811-* | m68hc11-* | m6812-* | m68hc12-* | m68hcs12x-* | nvptx-* | 
picochip-* \
+       | m88110-* | m88k-* | maxq-* | mb-* | mcore-* | mep-* | metag-* \
+       | microblaze-* | microblazeel-* \
+       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+       | mips16-* \
+       | mips64-* | mips64el-* \
+       | mips64octeon-* | mips64octeonel-* \
+       | mips64orion-* | mips64orionel-* \
+       | mips64r5900-* | mips64r5900el-* \
+       | mips64vr-* | mips64vrel-* \
+       | mips64vr4100-* | mips64vr4100el-* \
+       | mips64vr4300-* | mips64vr4300el-* \
+       | mips64vr5000-* | mips64vr5000el-* \
+       | mips64vr5900-* | mips64vr5900el-* \
+       | mipsisa32-* | mipsisa32el-* \
+       | mipsisa32r2-* | mipsisa32r2el-* \
+       | mipsisa32r6-* | mipsisa32r6el-* \
+       | mipsisa64-* | mipsisa64el-* \
+       | mipsisa64r2-* | mipsisa64r2el-* \
+       | mipsisa64r6-* | mipsisa64r6el-* \
+       | mipsisa64sb1-* | mipsisa64sb1el-* \
+       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+       | mipsr5900-* | mipsr5900el-* \
+       | mipstx39-* | mipstx39el-* \
+       | mmix-* \
+       | mn10200-* | mn10300-* \
+       | moxie-* \
+       | mt-* \
+       | msp430-* \
+       | nds32-* | nds32le-* | nds32be-* \
+       | nfp-* \
+       | nios-* | nios2-* | nios2eb-* | nios2el-* \
+       | none-* | np1-* | ns16k-* | ns32k-* \
+       | open8-* \
+       | or1k*-* \
+       | or32-* \
+       | orion-* \
+       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+       | pru-* \
+       | pyramid-* \
+       | riscv-* | riscv32-* | riscv64-* \
+       | rl78-* | romp-* | rs6000-* | rx-* \
+       | score-* \
+       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]ae[lb]-* | sh[23]e-* | 
she[lb]-* | sh[lb]e-* \
+       | sh[1234]e[lb]-* |  sh[12345][lb]e-* | sh[23]ele-* | sh64-* | sh64le-* 
\
+       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | 
sparclet-* \
+       | sparclite-* \
+       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
+       | spu-* \
+       | tahoe-* \
+       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+       | tron-* \
+       | ubicom32-* \
+       | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+       | vax-* \
+       | visium-* \
+       | wasm32-* \
+       | we32k-* \
+       | x86-* | x86_64-* | xc16x-* | xgate-* | xps100-* \
+       | xstormy16-* | xtensa*-* \
+       | ymp-* \
+       | z8k-* | z80-*)
+               ;;
+
+       # Recognize the basic CPU types without company name.
+       # Some are omitted here because they have special meanings below.
+       1750a | 580 \
+       | a29k \
+       | aarch64 | aarch64_be \
+       | abacus \
+       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | 
alpha64pca5[67] \
+       | am33_2.0 \
+       | arc | arceb \
+       | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | 
armv[78][arm] \
+       | avr | avr32 \
+       | asmjs \
+       | ba \
+       | be32 | be64 \
+       | bfin \
+       | c4x | c8051 | clipper | csky \
+       | d10v | d30v | dlx | dsp16xx \
+       | e2k | epiphany \
+       | fido | fr30 | frv | ft32 \
+       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+       | hexagon \
+       | i370 | i860 | i960 | ia16 | ia64 \
+       | ip2k | iq2000 \
+       | k1om \
+       | le32 | le64 \
+       | lm32 \
+       | m32c | m32r | m32rle | m68000 | m68k | m88k \
+       | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
+       | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
+       | mips | mipsbe | mipseb | mipsel | mipsle \
+       | mips16 \
+       | mips64 | mips64el \
+       | mips64octeon | mips64octeonel \
+       | mips64orion | mips64orionel \
+       | mips64r5900 | mips64r5900el \
+       | mips64vr | mips64vrel \
+       | mips64vr4100 | mips64vr4100el \
+       | mips64vr4300 | mips64vr4300el \
+       | mips64vr5000 | mips64vr5000el \
+       | mips64vr5900 | mips64vr5900el \
+       | mipsisa32 | mipsisa32el \
+       | mipsisa32r2 | mipsisa32r2el \
+       | mipsisa32r6 | mipsisa32r6el \
+       | mipsisa64 | mipsisa64el \
+       | mipsisa64r2 | mipsisa64r2el \
+       | mipsisa64r6 | mipsisa64r6el \
+       | mipsisa64sb1 | mipsisa64sb1el \
+       | mipsisa64sr71k | mipsisa64sr71kel \
+       | mipsr5900 | mipsr5900el \
+       | mipstx39 | mipstx39el \
+       | mn10200 | mn10300 \
+       | moxie \
+       | mt \
+       | msp430 \
+       | nds32 | nds32le | nds32be \
+       | nfp \
+       | nios | nios2 | nios2eb | nios2el \
+       | ns16k | ns32k \
+       | open8 | or1k | or1knd | or32 \
+       | pdp10 | pj | pjl \
+       | powerpc | powerpc64 | powerpc64le | powerpcle \
+       | pru \
+       | pyramid \
+       | riscv | riscv32 | riscv64 \
+       | rl78 | rx \
+       | score \
+       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | 
shbe | shle | sh[1234]le | sh[23]ele \
+       | sh64 | sh64le \
+       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | 
sparclite \
+       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+       | spu \
+       | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+       | ubicom32 \
+       | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+       | visium \
+       | wasm32 \
+       | x86 | xc16x | xstormy16 | xgate | xtensa \
+       | z8k | z80)
+               basic_machine=$basic_machine-unknown
+               ;;
+       c54x)
+               basic_machine=tic54x-unknown
+               ;;
+       c55x)
+               basic_machine=tic55x-unknown
+               ;;
+       c6x)
+               basic_machine=tic6x-unknown
+               ;;
+       leon|leon[3-9])
+               basic_machine=sparc-$basic_machine
+               ;;
+       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
+               ;;
+       m9s12z | m68hcs12z | hcs12z | s12z)
+               basic_machine=s12z-unknown
+               ;;
+       m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
+               basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'`
+               ;;
+       ms1)
+               basic_machine=mt-unknown
+               ;;
+       strongarm | thumb | xscale)
+               basic_machine=arm-unknown
+               ;;
+       xscaleeb)
+               basic_machine=armeb-unknown
+               ;;
+
+       xscaleel)
+               basic_machine=armel-unknown
+               ;;
+
        *)
                echo Invalid configuration \`"$1"\': machine 
\`"$basic_machine"\' not recognized 1>&2
                exit 1
-- 
2.18.0

>From df55328f05bd2d79c299127612a3a057ed326176 Mon Sep 17 00:00:00 2001
Message-Id: 
<df55328f05bd2d79c299127612a3a057ed326176.1534744813.git.John.Ericson@Obsidian.Systems>
In-Reply-To: 
<64e099bcd4125e92f2b51bf7679866da8678e97b.1534744813.git.John.Ericson@Obsidian.Systems>
References: 
<8186ffa46fa80dc9bdfc9824225bdeb99bfa33b2.1534744813.git.John.Ericson@Obsidian.Systems>
        
<64e099bcd4125e92f2b51bf7679866da8678e97b.1534744813.git.John.Ericson@Obsidian.Systems>
From: John Ericson <John.Ericson@Obsidian.Systems>
Date: Tue, 14 Aug 2018 14:52:46 -0400
Subject: [PATCH 3/3] Tenative fixes to issues arriving from previous commit
To: config-patches@gnu.org

---
 config.sub                | 22 ++++++++++------------
 testsuite/config-sub.data | 14 ++++++++------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/config.sub b/config.sub
index 7df77e0..562f38f 100755
--- a/config.sub
+++ b/config.sub
@@ -692,6 +692,9 @@ case $basic_machine in
        mac | mpw | mac-mpw)
                basic_machine=m68k-apple
                ;;
+       microblaze | microblazeel)
+               basic_machine=$basic_machine-xilinx
+               ;;
        pmac | pmac-mpw)
                basic_machine=powerpc-apple
                ;;
@@ -706,10 +709,6 @@ case $basic_machine in
          basic_machine=$basic_machine-pc
          ;;
 
-       # Recognize the basic CPU types without company name, with glob match.
-       xtensa*)
-               basic_machine=$basic_machine-unknown
-               ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
@@ -755,6 +754,9 @@ case $basic_machine in
        cris | cris-* | etrax*)
                basic_machine=cris-axis
                ;;
+       crx-*)
+               os=${os:-elf}
+               ;;
        crx)
                basic_machine=crx-unknown
                os=${os:-elf}
@@ -870,9 +872,6 @@ case $basic_machine in
                basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
                os=linux
                ;;
-       microblaze*)
-               basic_machine=microblaze-xilinx
-               ;;
        miniframe)
                basic_machine=m68000-convergent
                ;;
@@ -1063,9 +1062,8 @@ case $basic_machine in
        vpp*|vx|vx-*)
                basic_machine=f301-fujitsu
                ;;
-       w65*)
+       w65)
                basic_machine=w65-wdc
-               os=none
                ;;
        w89k-*)
                basic_machine=hppa1.1-winbond
@@ -1206,7 +1204,7 @@ case $basic_machine in
        | lm32 \
        | m32c | m32r | m32rle | m68000 | m68k | m88k \
        | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
-       | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
+       | maxq | mb | mcore | mep | metag \
        | mips | mipsbe | mipseb | mipsel | mipsle \
        | mips16 \
        | mips64 | mips64el \
@@ -1254,7 +1252,7 @@ case $basic_machine in
        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
        | visium \
        | wasm32 \
-       | x86 | xc16x | xstormy16 | xgate | xtensa \
+       | x86 | xc16x | xstormy16 | xgate | xtensa* \
        | z8k | z80)
                basic_machine=$basic_machine-unknown
                ;;
@@ -1270,7 +1268,7 @@ case $basic_machine in
        leon|leon[3-9])
                basic_machine=sparc-$basic_machine
                ;;
-       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
+       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70)
                ;;
        m9s12z | m68hcs12z | hcs12z | s12z)
                basic_machine=s12z-unknown
diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data
index 266175d..7b64306 100644
--- a/testsuite/config-sub.data
+++ b/testsuite/config-sub.data
@@ -128,6 +128,7 @@ clipper                                             
clipper-unknown-none
 clipper-clix                                   clipper-intergraph-clix
 cr16-elf                                       cr16-unknown-elf
 cr16-random-elf                                        cr16-unknown-elf
+crx                                            crx-unknown-elf
 crds                                           m68k-crds-unos
 cris-linux                                     cris-axis-linux-gnu
 crisv32-linux                                  crisv32-axis-linux-gnu
@@ -284,12 +285,13 @@ mep-elf                                           
mep-unknown-elf
 mep                                            mep-unknown-elf
 metag-linux                                    metag-unknown-linux-gnu
 metag                                          metag-unknown-none
-microblazeel-elf                               microblazeel-unknown-elf
-microblaze-elf                                 microblaze-unknown-elf
-microblazeel-linux                             microblazeel-unknown-linux-gnu
-microblazeel                                   microblazeel-unknown-none
-microblaze-linux                               microblaze-unknown-linux-gnu
-microblaze                                     microblaze-unknown-none
+microblazeel-elf                               microblazeel-xilinx-elf
+microblazeel-foobar-elf                                microblazeel-foobar-elf
+microblaze-elf                                 microblaze-xilinx-elf
+microblazeel-linux                             microblazeel-xilinx-linux-gnu
+microblazeel                                   microblazeel-xilinx-none
+microblaze-linux                               microblaze-xilinx-linux-gnu
+microblaze                                     microblaze-xilinx-none
 mingw32ce                                      arm-unknown-mingw32ce
 mingw32                                                i686-pc-mingw32
 mingw64                                                x86_64-pc-mingw64
-- 
2.18.0

_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches

Reply via email to