# 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.
# 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
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
*-*-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
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
;;
;;
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
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
# 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
# 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
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
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
;;
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
;;
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
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
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"
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
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'
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"
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"
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
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
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
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
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
;;
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
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
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
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"
;;
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"
;;