* expr.c (expr): allow SEG_BSS in expressions
[binutils-gdb.git] / config.sub
index dba56e213380305dc4491337e07060c00011611b..b383914a8ba75d815749448457ec92a785e35797 100755 (executable)
@@ -46,7 +46,7 @@ case $1 in
 esac
 
 # Separate what the user gave into CPU-COMPANY and OS (if any).
-basic_machine=`echo $1 | sed 's/-[^-]+$//'`
+basic_machine=`echo $1 | sed 's/-[^-][^-]*$//'`
 if [ $basic_machine != $1 ]
 then os=`echo $1 | sed 's/.*-/-/'`
 else os=; fi
@@ -90,16 +90,17 @@ esac
 # Decode aliases for certain CPU-COMPANY combinations.
 case $basic_machine in
        # Recognize the basic CPU types with without company name.
-       tahoe | i386 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \
-               | tron | a29k | 580 | i960 | h8300 | v70)
+       tahoe | i386 | i860 | m68k | m680[01234]0 | m88k | ns32k | arm | pyramid \
+               | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 | we32k\
+               | v70)
                basic_machine=$basic_machine-unknown
                ;;
        # Recognize the basic CPU types with with company name.
-       vax-* | tahoe-* | i386-* | i860-* | m68k-* | m68000-* | m88k-* \
+       vax-* | tahoe-* | i386-* | i860-* | m68k-* | m680[01234]0-* | m88k-* \
              | sparc-* | ns32k-* | alliant-* | arm-* | c[123]* \
              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
              | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
-             | hppa-*)
+             | hppa1.0-* | hppa1.1-* | we32k-*)
                ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
@@ -159,6 +160,10 @@ case $basic_machine in
                basic_machine=i386-unknown
                os=-iscsysv
                ;;
+       i386-linux* | linux)
+               basic_machine=i386-unknown
+               os=-linux
+               ;;
        i386v4*)
                basic_machine=i386-unknown
                os=-sysv4
@@ -267,6 +272,10 @@ case $basic_machine in
                basic_machine=sparc-sun
                os=-sunos4
                ;;
+       sun4sol2)
+               basic_machine=sparc-sun
+               os=-solaris2
+               ;;
        sun3)
                basic_machine=m68k-sun
                ;;
@@ -292,8 +301,11 @@ case $basic_machine in
        hp9k31[0-9] | hp9k2[0-9][0-9])
                basic_machine=m68000-hp
                ;;
-       hp9k8[0-9][0-9] | hp9k7[0-9][0-9] | hp8[0-9][0-9] | hp7[0-9][0-9])
-               basic_machine=hp800-hp
+       hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k8[0-9][0-9] | hp8[0-9][0-9])
+               basic_machine=hppa1.0-hp
                ;;
        isi68 | isi)
                basic_machine=m68k-isi
@@ -422,6 +434,14 @@ case $basic_machine in
                basic_machine=m68k-hp
                os=-hpux
                ;;
+       hppabsd)
+               basic_machine=hppa-hp
+               os=-bsd
+               ;;
+       hppahpux)
+               basic_machine=hppa-hp
+               os=-hpux
+               ;;
        ncr3000)
                basic_machine=i386-ncr
                os=-sysv4
@@ -466,6 +486,22 @@ case $basic_machine in
                basic_machine=sparclite-fujitsu
                os=-none
                ;;
+       sparcfrw)
+               basic_machine=sparcfrw-sun
+               os=-sunos4
+               ;;
+       sparcfrwcompat)
+               basic_machine=sparcfrwcompat-sun
+               os=-sunos4
+               ;;
+       sparclitefrw)
+               basic_machine=sparclitefrw-fujitsu
+               os=-none
+               ;;
+       sparclitefrwcompat)
+               basic_machine=sparclitefrwcompat-fujitsu
+               os=-none
+               ;;
 
        none)
                basic_machine=none-none
@@ -508,9 +544,10 @@ case $os in
        # Each alternative must end in a *, to match a version number.
        -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -aout \
              | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \
-             | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solari* | -sym* \
+             | -unos* | -osf* | -v88r* | -luna* | -dgux* | -solaris* | -sym* \
              | -newsos | -amigados* | -msdos* | -none* | -os68k* | -irix* \
-             | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray | -m88kbcs* | -go32)
+             | -nindy* | -vxworks* | -ebmon* | -udi | -hms* | -xray \
+             | -m88kbcs* | -go32 | -linux*)
        ;;
 # start-sanitize-v9
        -v7 | -v9 | -hal32 | -hal64) ;;