From 630d61c8e93b2ecbf88534c3dfce68668426d410 Mon Sep 17 00:00:00 2001 Message-Id: From: John Ericson Date: Mon, 30 Jul 2018 10:36:00 -0400 Subject: [PATCH 1/6] * config.sub: Move manufacture-defaultint patterns to the top To: address@hidden --- ChangeLog | 10 ++++++ config.sub | 103 +++++++++++++++++++++++++++-------------------------- 2 files changed, 62 insertions(+), 51 deletions(-) diff --git a/ChangeLog b/ChangeLog index f79ad5f..e6bad15 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2018-08-08 John Ericson + + * config.sub: Move manufacture-defaultint patterns to the top + + Eventually the glob patterns should always go last. That way + previous patterns can refine them by being more specific. These + manufacture-defaulting patterns right now are in the form `foo`, + but would eventually be in the form `foo-unknown` so as to default + the vendor without overriding it more completely. + 2018-08-08 John Ericson * config.sub: Eliminate some dead code for SH targets. diff --git a/config.sub b/config.sub index 97d38aa..3a7b60c 100755 --- a/config.sub +++ b/config.sub @@ -564,6 +564,57 @@ esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in + # Here we handle the default manufacturer of certain CPU types. It is in + # some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + cydra) + basic_machine=cydra-cydrome + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ @@ -718,7 +769,7 @@ case $basic_machine in | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ - | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ + | i370-* | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ @@ -956,9 +1007,6 @@ case $basic_machine in hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; i*86v32) basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` os=sysv32 @@ -1218,9 +1266,6 @@ case $basic_machine in x64) basic_machine=x86_64-pc ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; xscale-* | xscalee[bl]-*) basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` ;; @@ -1228,50 +1273,6 @@ case $basic_machine in basic_machine=none-none ;; -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; *) echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 exit 1 -- 2.17.1