OSDN Git Service

* init.c (build_new): Allow enumeration types for the array-bounds
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 71a1468..049d5d4 100644 (file)
@@ -1,5 +1,5 @@
 # GCC build-, host- and target-specific configuration file.
-# Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 #This file is part of GNU CC.
 
@@ -258,14 +258,14 @@ esac
 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
 case $machine in
 *-*-linux*)
-       xm_defines="HAVE_ATEXIT POSIX BSTRING"
+       xm_defines="POSIX"
        ;;
 *-*-gnu*)
        # On the Hurd, the setup is just about the same on
        # 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
@@ -1465,8 +1489,6 @@ i[34567]86-*-mingw32*)
        ;;
 i[34567]86-*-uwin*)
        tm_file=i386/uwin.h
-       xm_file="${xm_file} i386/xm-uwin.h"
-       xm_defines="USG NO_STAB_H"
        tmake_file="i386/t-cygwin i386/t-uwin"
        extra_objs=winnt.o
        xmake_file=i386/x-cygwin
@@ -2722,7 +2744,7 @@ powerpc-*-openbsd*)
        ;;
 powerpc-*-beos*)
        cpu_type=rs6000
-       tm_file=rs6000/beos.h
+       tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
        xm_file=rs6000/xm-beos.h
        tmake_file=rs6000/t-beos
        xmake_file=rs6000/x-beos
@@ -2732,35 +2754,45 @@ powerpc-*-darwin*)
        xmake_file=rs6000/x-darwin
        ;;
 powerpc-*-sysv*)
-       tm_file=rs6000/sysv4.h
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h"
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG POSIX"
        extra_headers=ppc-asm.h
        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="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpc-*-eabisim*)
-       tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpc-*-elf*)
-       tm_file="rs6000/sysv4.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpc-*-eabi*)
-       tm_file="rs6000/sysv4.h rs6000/eabi.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpc-*-rtems*)
-       tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/eabi.h rtems.h rs6000/rtems.h"
        tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        if test x$enable_threads = xyes; then
@@ -2768,7 +2800,7 @@ powerpc-*-rtems*)
        fi
        ;;
 powerpc-*-linux*libc1)
-       tm_file="rs6000/sysv4.h rs6000/linux.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
        xm_file=rs6000/xm-sysv4.h
        out_file=rs6000/rs6000.c
        tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
@@ -2779,7 +2811,7 @@ powerpc-*-linux*libc1)
        fi
        ;;
 powerpc-*-linux*)
-       tm_file="rs6000/sysv4.h rs6000/linux.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/linux.h"
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG ${xm_defines}"
        out_file=rs6000/rs6000.c
@@ -2794,7 +2826,7 @@ powerpc-wrs-vxworks*)
         cpu_type=rs6000
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG POSIX"
-        tm_file="rs6000/sysv4.h rs6000/vxppc.h"
+        tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/vxppc.h"
         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        thread_file='vxworks'
@@ -2803,13 +2835,13 @@ powerpcle-wrs-vxworks*)
         cpu_type=rs6000
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG POSIX"
-        tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
+        tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        thread_file='vxworks'
         ;;
 powerpcle-*-sysv*)
-       tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG POSIX"
        tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
@@ -2817,22 +2849,22 @@ powerpcle-*-sysv*)
        extra_headers=ppc-asm.h
        ;;
 powerpcle-*-elf*)
-       tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpcle-*-eabisim*)
-       tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpcle-*-eabi*)
-       tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
        tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
        extra_headers=ppc-asm.h
        ;;
 powerpcle-*-solaris2*)
-       tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
+       tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
        xm_file="rs6000/xm-sysv4.h"
        xm_defines="USG POSIX"
        tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
@@ -2840,13 +2872,13 @@ powerpcle-*-solaris2*)
        extra_headers=ppc-asm.h
        ;;
 rs6000-ibm-aix3.[01]*)
-       tm_file=rs6000/aix31.h
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
        xmake_file=rs6000/x-aix31
        float_format=none
        use_collect2=yes
        ;;
 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
-       tm_file=rs6000/aix3newas.h
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
        if test x$host != x$target
        then
                tmake_file=rs6000/t-xnewas
@@ -2857,7 +2889,7 @@ rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
        use_collect2=yes
        ;;
 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
-       tm_file=rs6000/aix41.h
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
        if test x$host != x$target
        then
                tmake_file=rs6000/t-xnewas
@@ -2875,7 +2907,7 @@ rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
        use_collect2=yes
        ;;
 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
-       tm_file=rs6000/aix43.h
+       tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
        tmake_file=rs6000/t-aix43
        xmake_file=rs6000/x-aix41
        float_format=none
@@ -2883,7 +2915,7 @@ rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
        thread_file='aix'
        ;;
 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
-       tm_file=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
@@ -2891,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
        ;;
@@ -2950,6 +2984,11 @@ sparc-tti-*)
        xm_file="xm-alloca.h ${xm_file}"
        xm_defines=USG
        ;;
+sparc64-wrs-vxworks*)
+        tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
+        tmake_file=sparc/t-vxsparc64
+        use_collect2=yes
+        ;;
 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
        tm_file=sparc/vxsparc.h
        tmake_file=sparc/t-vxsparc
@@ -2972,8 +3011,19 @@ 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/elf.h
+       tm_file="sparc/sol2.h sparc/elf.h"
        tmake_file=sparc/t-elf
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        #float_format=i128
@@ -3025,7 +3075,7 @@ sparc-*-rtemsaout*)
        fi
        ;;
 sparc-*-rtems*|sparc-*-rtemself*)
-       tm_file="sparc/rtemself.h"
+       tm_file="sparc/sol2.h sparc/elf.h sparc/rtemself.h"
        tmake_file="sparc/t-elf t-rtems"
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        #float_format=i128
@@ -3185,7 +3235,7 @@ sparclite-*-aout*)
        tmake_file=sparc/t-sparclite
        ;;
 sparclite-*-elf*)
-       tm_file="sparc/liteelf.h"
+       tm_file="sparc/sol2.h sparc/elf.h sparc/liteelf.h"
        tmake_file=sparc/t-sparclite
         extra_parts="crtbegin.o crtend.o"
        ;;
@@ -3194,7 +3244,7 @@ sparc86x-*-aout*)
        tmake_file=sparc/t-sp86x
        ;;
 sparc86x-*-elf*)       
-       tm_file="sparc/sp86x-elf.h"
+       tm_file="sparc/sol2.h sparc./elf.h sparc/sp86x-elf.h"
        tmake_file=sparc/t-sp86x
         extra_parts="crtbegin.o crtend.o"
        ;;