OSDN Git Service

* init.c (build_new): Allow enumeration types for the array-bounds
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 5f47b24..049d5d4 100644 (file)
@@ -265,7 +265,7 @@ case $machine in
        # each different CPU.  The specific machines that we
        # support are matched above and just set $cpu_type.
        xm_file="xm-gnu.h ${xm_file}"
-       tm_file=${cpu_type}/gnu.h
+       tm_file="${cpu_type}/gnu.h"
        extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
        # GNU always uses ELF.
        elf=yes
@@ -276,6 +276,14 @@ case $machine in
        xmake_file=x-linux
        # But here we need a little extra magic.
        tmake_file="t-linux t-gnu"
+       case $machine in
+       i[34567]86-*-*)
+               tm_file="${cpu_type}/${cpu_type}.h i386/att.h linux.h i386/linux.h gnu.h ${tm_file}"
+               ;;
+       mips*-*-*)
+               tm_file="svr4.h ${cpu_type}/${cpu_type}.h ${tm_file}"
+               ;;
+       esac
        ;;
 *-*-openbsd*)
        tm_file=${cpu_type}/openbsd.h
@@ -445,6 +453,7 @@ alpha*-dec-osf*)
          *-*-osf5*)
            tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
            tmake_file="$tmake_file alpha/t-osf4"
+           float_format=i128
            ;;
        esac
        case $machine in
@@ -969,9 +978,20 @@ i370-*-linux*)
                thread_file='posix'
        fi
        ;;
+i[34567]86-*-chorusos*)
+       xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
+       tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h i386/chorus.h"
+       tmake_file=i386/t-i386elf
+       xmake_file=x-svr4
+       case x${enable_threads} in
+         xyes | xpthreads | xposix)
+               thread_file='posix'
+               ;;
+       esac
+       ;;
 i[34567]86-*-elf*)
        xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
-       tm_file=i386/i386elf.h
+       tm_file="i386/i386.h i386/att.h elfos.h i386/i386afe.h i386/i386elf.h"
        tmake_file=i386/t-i386elf
        xmake_file=x-svr4
        ;;
@@ -1044,6 +1064,10 @@ i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
        ;;
 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
        xm_file="xm-alloca.h ${xm_file}"
+       if test x$gas = xyes
+       then
+               tm_file="${tm_file} usegas.h"
+       fi
        xm_defines="USG POSIX SMALL_ARG_MAX"
        xmake_file=x-svr4
        tm_file=i386/ptx4-i.h
@@ -1087,7 +1111,7 @@ i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aou
        tmake_file=t-freebsd
        ;;
 i[34567]86-*-freebsd*)
-       tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
+       tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/i386afe.h i386/freebsd.h i386/perform.h"
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
        tmake_file=t-freebsd
        gas=yes
@@ -1158,7 +1182,7 @@ i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
                                # with ELF format using the
                                # GNU/Linux C library 5
        xmake_file=x-linux      
-       tm_file=i386/linux.h    
+       tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
        tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
        gnu_ld=yes
@@ -1171,7 +1195,7 @@ i[34567]86-*-linux*)      # Intel 80386's running GNU/Linux
                        # with ELF format using glibc 2
                        # aka GNU/Linux C library 6
        xmake_file=x-linux
-       tm_file=i386/linux.h
+       tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h"
        tmake_file="t-linux i386/t-crtstuff"
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
        gnu_ld=yes
@@ -1202,7 +1226,7 @@ i[34567]86-pc-msdosdjgpp*)
        esac
        ;;
 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
-       tm_file=i386/moss.h
+       tm_file="i386/i386.h i386/att.h linux.h i386/i386afe.h i386/linux.h i386/moss.h"
        tmake_file=t-libc-ok
        gnu_ld=yes
        gas=yes
@@ -1271,7 +1295,7 @@ i[34567]86-*-sco3.2v5*)   # 80386 running SCO Open Server 5
        tm_file=i386/sco5.h
        if test x$gas = xyes
        then
-               tm_file="i386/sco5gas.h ${tm_file}"
+               tm_file="usegas.h ${tm_file}"
                tmake_file=i386/t-sco5gas
        else
                tmake_file=i386/t-sco5
@@ -2737,6 +2761,16 @@ powerpc-*-sysv*)
        tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
        xmake_file=rs6000/x-sysv4
        ;;
+powerpc-*-chorusos*)
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/chorus.h"
+       tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
+       extra_headers=ppc-asm.h
+       case x${enable_threads} in
+         xyes | xpthreads | xposix)
+               thread_file='posix'
+               ;;
+       esac
+       ;;
 powerpc-*-eabiaix*)
        tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
@@ -2881,7 +2915,7 @@ rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
        thread_file='aix'
        ;;
 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
-       tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
        tmake_file=rs6000/t-aix43
        xmake_file=rs6000/x-aix41
        float_format=none
@@ -2889,10 +2923,12 @@ rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
        thread_file='aix'
        ;;
 rs6000-ibm-aix*)
+       tm_file="${tm_file} rs6000/aix.h"
        float_format=none
        use_collect2=yes
        ;;
 rs6000-bull-bosx)
+       tm_file="${tm_file} rs6000/aix.h"
        float_format=none
        use_collect2=yes
        ;;
@@ -2975,6 +3011,17 @@ sparc-*-openbsd*)
 sparc-*-bsd*)
        tm_file=sparc/bsd.h
        ;;
+sparc-*-chorusos*)
+       tm_file="sparc/sol2.h sparc/elf.h sparc/chorus.h"
+       tmake_file=sparc/t-chorus-elf
+       extra_parts="crti.o crtn.o crtbegin.o crtend.o"
+       float_format=i64
+       case x${enable_threads} in
+         xyes | xpthreads | xposix)
+               thread_file='posix'
+               ;;
+       esac
+       ;;
 sparc-*-elf*)
        tm_file="sparc/sol2.h sparc/elf.h"
        tmake_file=sparc/t-elf