Commit cbbf876b by Nathanael Nerode

fixproto: Define NULL and size_t in generated stdlib.h and unistd.h.

	* fixproto: Define NULL and size_t in generated stdlib.h and
	unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
	Rearrange file generation loop for readability.  Generate time.h,
	string.h if missing.
	* tsystem.h: Include <string.h>, <time.h> unconditionally.
	* config.gcc: Blow away POSIX defines.

From-SVN: r64690
parent 84fcbe0a
2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
* fixproto: Define NULL and size_t in generated stdlib.h and
unistd.h. Kill unused required_stdlib_h, required_unistd_h.
Rearrange file generation loop for readability. Generate time.h,
string.h if missing.
* tsystem.h: Include <string.h>, <time.h> unconditionally.
* config.gcc: Blow away POSIX defines.
2003-03-22 Stephane Carrez <stcarrez@nerim.fr> 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
* config/m68hc11/m68hc11.md ("call_value"): Fix trap check. * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
......
...@@ -347,7 +347,6 @@ esac ...@@ -347,7 +347,6 @@ esac
# Common parts for widely ported systems. # Common parts for widely ported systems.
case $machine in case $machine in
*-*-linux*) *-*-linux*)
xm_defines=POSIX
case $machine in case $machine in
*-*-linux*ecoff* | *-*-linux*libc1* | *-*-linux*oldld* | *-*-linux*aout*) *-*-linux*ecoff* | *-*-linux*libc1* | *-*-linux*oldld* | *-*-linux*aout*)
;; ;;
...@@ -365,7 +364,6 @@ case $machine in ...@@ -365,7 +364,6 @@ case $machine in
# On the Hurd, the setup is just about the same on # On the Hurd, the setup is just about the same on
# each different CPU. The specific machines that we # each different CPU. The specific machines that we
# support are matched above and just set $cpu_type. # support are matched above and just set $cpu_type.
xm_defines=POSIX
tm_file="${cpu_type}/gnu.h" tm_file="${cpu_type}/gnu.h"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
# GNU always uses ELF. # GNU always uses ELF.
...@@ -388,7 +386,6 @@ case $machine in ...@@ -388,7 +386,6 @@ case $machine in
*-*-openbsd*) *-*-openbsd*)
tm_file=${cpu_type}/openbsd.h tm_file=${cpu_type}/openbsd.h
tmake_file="t-libc-ok t-openbsd t-libgcc-pic" tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
xm_defines=POSIX
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
thread_file='posix' thread_file='posix'
tmake_file="${tmake_file} t-openbsd-thread" tmake_file="${tmake_file} t-openbsd-thread"
...@@ -396,7 +393,6 @@ case $machine in ...@@ -396,7 +393,6 @@ case $machine in
;; ;;
*-*-netbsd*) *-*-netbsd*)
tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd" tmake_file="t-slibgcc-elf-ver t-libc-ok t-netbsd"
xm_defines=POSIX
gas=yes gas=yes
gnu_ld=yes gnu_ld=yes
...@@ -463,7 +459,6 @@ case $machine in ...@@ -463,7 +459,6 @@ case $machine in
esac esac
tmake_file="t-slibgcc-elf-ver t-freebsd" tmake_file="t-slibgcc-elf-ver t-freebsd"
xmake_file=none xmake_file=none
xm_defines=POSIX
case x${enable_threads} in case x${enable_threads} in
xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";; xno) fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h";;
x | xyes | xpthreads | xposix) x | xyes | xpthreads | xposix)
...@@ -497,7 +492,6 @@ case $machine in ...@@ -497,7 +492,6 @@ case $machine in
tm_file="${tm_file} elfos.h svr4.h vxworks.h" tm_file="${tm_file} elfos.h svr4.h vxworks.h"
thread_file='vxworks' thread_file='vxworks'
use_collect2=yes use_collect2=yes
xm_defines=POSIX
;; ;;
esac esac
...@@ -533,7 +527,6 @@ alpha-*-interix) ...@@ -533,7 +527,6 @@ alpha-*-interix)
# GAS + IEEE_CONFORMANT # GAS + IEEE_CONFORMANT
target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT" target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
xm_defines=POSIX
tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee" tmake_file="alpha/t-alpha t-interix alpha/t-interix alpha/t-ieee"
if test x$enable_threads = xyes ; then if test x$enable_threads = xyes ; then
thread_file='posix' thread_file='posix'
...@@ -587,7 +580,6 @@ alpha*-*-openbsd*) ...@@ -587,7 +580,6 @@ alpha*-*-openbsd*)
;; ;;
alpha*-dec-osf[45]*) alpha*-dec-osf[45]*)
xm_defines=POSIX
if test x$stabs = xyes if test x$stabs = xyes
then then
tm_file="${tm_file} dbx.h" tm_file="${tm_file} dbx.h"
...@@ -618,7 +610,6 @@ alpha*-dec-osf[45]*) ...@@ -618,7 +610,6 @@ alpha*-dec-osf[45]*)
esac esac
;; ;;
alpha64-dec-*vms*) alpha64-dec-*vms*)
xm_defines=POSIX
tm_file="${tm_file} alpha/vms.h alpha/vms64.h" tm_file="${tm_file} alpha/vms.h alpha/vms64.h"
xm_file="alpha/xm-vms.h" xm_file="alpha/xm-vms.h"
tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee" tmake_file="alpha/t-alpha alpha/t-vms alpha/t-vms64 alpha/t-ieee"
...@@ -636,7 +627,6 @@ alpha64-dec-*vms*) ...@@ -636,7 +627,6 @@ alpha64-dec-*vms*)
local_prefix=/gnu local_prefix=/gnu
;; ;;
alpha*-dec-*vms*) alpha*-dec-*vms*)
xm_defines=POSIX
tm_file="${tm_file} alpha/vms.h" tm_file="${tm_file} alpha/vms.h"
xm_file=alpha/xm-vms.h xm_file=alpha/xm-vms.h
tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee" tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
...@@ -707,7 +697,6 @@ arm*-*-ecos-elf) ...@@ -707,7 +697,6 @@ arm*-*-ecos-elf)
tmake_file=arm/t-arm-elf tmake_file=arm/t-arm-elf
;; ;;
arm*-*-rtems*) arm*-*-rtems*)
xm_defines=POSIX
tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h" tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h"
tmake_file="arm/t-arm-elf t-rtems" tmake_file="arm/t-arm-elf t-rtems"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -734,7 +723,6 @@ arm-*-pe*) ...@@ -734,7 +723,6 @@ arm-*-pe*)
avr-*-*) avr-*-*)
;; ;;
c4x-*-rtems* | tic4x-*-rtems*) c4x-*-rtems* | tic4x-*-rtems*)
xm_defines=POSIX
tmake_file="c4x/t-c4x t-rtems" tmake_file="c4x/t-c4x t-rtems"
tm_file="c4x/c4x.h c4x/rtems.h rtems.h" tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -777,7 +765,6 @@ frv-*-elf) ...@@ -777,7 +765,6 @@ frv-*-elf)
tmake_file=frv/t-frv tmake_file=frv/t-frv
;; ;;
h8300-*-rtems*) h8300-*-rtems*)
xm_defines=POSIX
tmake_file="h8300/t-h8300 t-rtems" tmake_file="h8300/t-h8300 t-rtems"
tm_file="h8300/h8300.h h8300/rtems.h rtems.h" tm_file="h8300/h8300.h h8300/rtems.h rtems.h"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -822,7 +809,6 @@ hppa1.1-*-osf*) ...@@ -822,7 +809,6 @@ hppa1.1-*-osf*)
use_collect2=yes use_collect2=yes
;; ;;
hppa1.1-*-rtems*) hppa1.1-*-rtems*)
xm_defines=POSIX
target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h"
tmake_file="pa/t-bsd pa/t-pro t-rtems" tmake_file="pa/t-bsd pa/t-pro t-rtems"
...@@ -852,14 +838,12 @@ hppa1.0-*-bsd*) ...@@ -852,14 +838,12 @@ hppa1.0-*-bsd*)
;; ;;
hppa1.0-*-hpux7*) hppa1.0-*-hpux7*)
tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h" tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
;; ;;
hppa1.0-*-hpux8.0[0-2]*) hppa1.0-*-hpux8.0[0-2]*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
if test x$gas != xyes if test x$gas != xyes
then then
...@@ -871,7 +855,6 @@ hppa1.0-*-hpux8.0[0-2]*) ...@@ -871,7 +855,6 @@ hppa1.0-*-hpux8.0[0-2]*)
hppa1.1-*-hpux8.0[0-2]*) hppa1.1-*-hpux8.0[0-2]*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
if test x$gas != xyes if test x$gas != xyes
then then
...@@ -883,14 +866,12 @@ hppa1.1-*-hpux8.0[0-2]*) ...@@ -883,14 +866,12 @@ hppa1.1-*-hpux8.0[0-2]*)
hppa1.1-*-hpux8*) hppa1.1-*-hpux8*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
;; ;;
hppa1.0-*-hpux8*) hppa1.0-*-hpux8*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
...@@ -898,7 +879,6 @@ hppa1.0-*-hpux8*) ...@@ -898,7 +879,6 @@ hppa1.0-*-hpux8*)
hppa1.1-*-hpux10* | hppa2*-*-hpux10*) hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
xm_defines=POSIX
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
xmake_file="pa/x-ada" xmake_file="pa/x-ada"
if test x$enable_threads = x; then if test x$enable_threads = x; then
...@@ -914,7 +894,6 @@ hppa1.1-*-hpux10* | hppa2*-*-hpux10*) ...@@ -914,7 +894,6 @@ hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
;; ;;
hppa1.0-*-hpux10*) hppa1.0-*-hpux10*)
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h" tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
xm_defines=POSIX
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
xmake_file="pa/x-ada" xmake_file="pa/x-ada"
if test x$enable_threads = x; then if test x$enable_threads = x; then
...@@ -929,7 +908,6 @@ hppa1.0-*-hpux10*) ...@@ -929,7 +908,6 @@ hppa1.0-*-hpux10*)
use_collect2=yes use_collect2=yes
;; ;;
hppa*64*-*-hpux11*) hppa*64*-*-hpux11*)
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \ tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
...@@ -961,7 +939,6 @@ hppa*64*-*-hpux11*) ...@@ -961,7 +939,6 @@ hppa*64*-*-hpux11*)
hppa1.1-*-hpux11* | hppa2*-*-hpux11*) hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
xm_defines=POSIX
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
xmake_file="pa/x-ada" xmake_file="pa/x-ada"
# if test x$enable_threads = x; then # if test x$enable_threads = x; then
...@@ -976,7 +953,6 @@ hppa1.1-*-hpux11* | hppa2*-*-hpux11*) ...@@ -976,7 +953,6 @@ hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
;; ;;
hppa1.0-*-hpux11*) hppa1.0-*-hpux11*)
tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h" tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
xm_defines=POSIX
tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib" tmake_file="pa/t-pa pa/t-pa-hpux pa/t-hpux-shlib"
xmake_file="pa/x-ada" xmake_file="pa/x-ada"
# if test x$enable_threads = x; then # if test x$enable_threads = x; then
...@@ -992,14 +968,12 @@ hppa1.0-*-hpux11*) ...@@ -992,14 +968,12 @@ hppa1.0-*-hpux11*)
hppa1.1-*-hpux* | hppa2*-*-hpux*) hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
;; ;;
hppa1.0-*-hpux*) hppa1.0-*-hpux*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
...@@ -1007,14 +981,12 @@ hppa1.0-*-hpux*) ...@@ -1007,14 +981,12 @@ hppa1.0-*-hpux*)
hppa1.1-*-hiux* | hppa2*-*-hiux*) hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default="MASK_PA_11" target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
;; ;;
hppa1.0-*-hiux*) hppa1.0-*-hiux*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h" tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
xm_defines=POSIX
tmake_file=pa/t-pa-hpux tmake_file=pa/t-pa-hpux
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
use_collect2=yes use_collect2=yes
...@@ -1035,14 +1007,14 @@ hppa*-*-mpeix*) ...@@ -1035,14 +1007,14 @@ hppa*-*-mpeix*)
use_collect2=yes use_collect2=yes
;; ;;
i370-*-opened*) # IBM 360/370/390 Architecture i370-*-opened*) # IBM 360/370/390 Architecture
xm_defines='POSIX FATAL_EXIT_CODE=12' xm_defines='FATAL_EXIT_CODE=12'
tm_file=i370/oe.h tm_file=i370/oe.h
tmake_file="i370/t-oe i370/t-i370" tmake_file="i370/t-oe i370/t-i370"
c_target_objs="i370-c.o" c_target_objs="i370-c.o"
cxx_target_objs="i370-c.o" cxx_target_objs="i370-c.o"
;; ;;
i370-*-mvs*) i370-*-mvs*)
xm_defines='POSIX FATAL_EXIT_CODE=12' xm_defines='FATAL_EXIT_CODE=12'
tm_file=i370/mvs.h tm_file=i370/mvs.h
tmake_file="i370/t-i370" tmake_file="i370/t-i370"
c_target_objs="i370-c.o" c_target_objs="i370-c.o"
...@@ -1058,12 +1030,11 @@ i[34567]86-*-darwin*) ...@@ -1058,12 +1030,11 @@ i[34567]86-*-darwin*)
tm_file="${tm_file} i386/darwin.h" tm_file="${tm_file} i386/darwin.h"
;; ;;
i[34567]86-*-elf*) i[34567]86-*-elf*)
xm_defines=POSIX
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h"
tmake_file="i386/t-i386elf t-svr4" tmake_file="i386/t-i386elf t-svr4"
;; ;;
i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
xm_defines="POSIX SMALL_ARG_MAX" xm_defines="SMALL_ARG_MAX"
if test x$stabs = xyes -a x$gas = xyes if test x$stabs = xyes -a x$gas = xyes
then then
tm_file=i386/sysv4gdb.h tm_file=i386/sysv4gdb.h
...@@ -1082,7 +1053,7 @@ i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) ...@@ -1082,7 +1053,7 @@ i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
then then
tm_file="${tm_file} usegas.h" tm_file="${tm_file} usegas.h"
fi fi
xm_defines="POSIX SMALL_ARG_MAX" xm_defines="SMALL_ARG_MAX"
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ptx4.h i386/ptx4-i.h"
tmake_file=t-svr4 tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
...@@ -1096,7 +1067,6 @@ i[34567]86-*-aout*) ...@@ -1096,7 +1067,6 @@ i[34567]86-*-aout*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h i386/i386-aout.h"
;; ;;
i[34567]86-*-beoself* | i[34567]86-*-beos*) i[34567]86-*-beoself* | i[34567]86-*-beos*)
xm_defines=POSIX
tmake_file='i386/t-beos i386/t-crtpic' tmake_file='i386/t-beos i386/t-crtpic'
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/beos-elf.h"
extra_parts='crtbegin.o crtend.o' extra_parts='crtbegin.o crtend.o'
...@@ -1208,7 +1178,6 @@ i[34567]86-go32-rtems* | i[34567]86-*-rtemscoff*) ...@@ -1208,7 +1178,6 @@ i[34567]86-go32-rtems* | i[34567]86-*-rtemscoff*)
exit 1 exit 1
;; ;;
i[34567]86-*-rtems*) i[34567]86-*-rtems*)
xm_defines=POSIX
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h"
extra_parts="crtbegin.o crtend.o crti.o crtn.o" extra_parts="crtbegin.o crtend.o crti.o crtn.o"
tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems" tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
...@@ -1217,7 +1186,6 @@ i[34567]86-*-rtems*) ...@@ -1217,7 +1186,6 @@ i[34567]86-*-rtems*)
fi fi
;; ;;
i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
xm_defines=POSIX
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h" tm_file="${tm_file} i386/unix.h i386/att.h i386/sco5.h"
if test x$gas = xyes if test x$gas = xyes
...@@ -1230,7 +1198,7 @@ i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 ...@@ -1230,7 +1198,7 @@ i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o" extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
;; ;;
i[34567]86-*-solaris2*) i[34567]86-*-solaris2*)
xm_defines="POSIX SMALL_ARG_MAX" xm_defines="SMALL_ARG_MAX"
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
tmake_file="i386/t-sol2 t-svr4" tmake_file="i386/t-sol2 t-svr4"
if test x$gnu_ld = xyes; then if test x$gnu_ld = xyes; then
...@@ -1254,7 +1222,6 @@ i[34567]86-*-solaris2*) ...@@ -1254,7 +1222,6 @@ i[34567]86-*-solaris2*)
fi fi
;; ;;
i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
xm_defines=POSIX
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
if test x$stabs = xyes if test x$stabs = xyes
then then
...@@ -1267,7 +1234,7 @@ i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 ...@@ -1267,7 +1234,7 @@ i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
fi fi
;; ;;
i[34567]86-*-sysv4*) # Intel 80386's running system V.4 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
xm_defines="POSIX SMALL_ARG_MAX" xm_defines="SMALL_ARG_MAX"
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv4-cpp.h"
if test x$stabs = xyes if test x$stabs = xyes
then then
...@@ -1277,14 +1244,12 @@ i[34567]86-*-sysv4*) # Intel 80386's running system V.4 ...@@ -1277,14 +1244,12 @@ i[34567]86-*-sysv4*) # Intel 80386's running system V.4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
xm_defines=POSIX
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h" tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h i386/udk.h"
tmake_file="i386/t-crtpic i386/t-udk t-svr4" tmake_file="i386/t-crtpic i386/t-udk t-svr4"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio install_headers_dir=install-headers-cpio
;; ;;
i[34567]86-*-sysv*) # Intel 80386's running system V i[34567]86-*-sysv*) # Intel 80386's running system V
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
if test x$stabs = xyes if test x$stabs = xyes
...@@ -1309,7 +1274,6 @@ i386-*-vsta) # Intel 80386's running VSTa kernel ...@@ -1309,7 +1274,6 @@ i386-*-vsta) # Intel 80386's running VSTa kernel
tm_file="${tm_file} i386/vsta.h" tm_file="${tm_file} i386/vsta.h"
;; ;;
i[34567]86-*-win32) i[34567]86-*-win32)
xm_defines=POSIX
xm_file=i386/xm-cygwin.h xm_file=i386/xm-cygwin.h
tmake_file=i386/t-cygwin tmake_file=i386/t-cygwin
tm_file="${tm_file} i386/win32.h" tm_file="${tm_file} i386/win32.h"
...@@ -1321,7 +1285,6 @@ i[34567]86-*-win32) ...@@ -1321,7 +1285,6 @@ i[34567]86-*-win32)
;; ;;
i[34567]86-*-pe | i[34567]86-*-cygwin*) i[34567]86-*-pe | i[34567]86-*-cygwin*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h"
xm_defines=POSIX
xm_file=i386/xm-cygwin.h xm_file=i386/xm-cygwin.h
tmake_file="i386/t-cygming i386/t-cygwin" tmake_file="i386/t-cygming i386/t-cygwin"
float_format=i386 float_format=i386
...@@ -1335,7 +1298,6 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*) ...@@ -1335,7 +1298,6 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*)
;; ;;
i[34567]86-*-mingw32*) i[34567]86-*-mingw32*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h"
xm_defines=POSIX
xm_file=i386/xm-mingw32.h xm_file=i386/xm-mingw32.h
tmake_file="i386/t-cygming i386/t-mingw32" tmake_file="i386/t-cygming i386/t-mingw32"
float_format=i386 float_format=i386
...@@ -1363,7 +1325,6 @@ i[34567]86-*-uwin*) ...@@ -1363,7 +1325,6 @@ i[34567]86-*-uwin*)
;; ;;
i[34567]86-*-interix3*) i[34567]86-*-interix3*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
xm_defines=POSIX
tmake_file="t-interix i386/t-interix" tmake_file="t-interix i386/t-interix"
extra_objs=winnt.o extra_objs=winnt.o
xmake_file="x-interix" xmake_file="x-interix"
...@@ -1376,7 +1337,6 @@ i[34567]86-*-interix3*) ...@@ -1376,7 +1337,6 @@ i[34567]86-*-interix3*)
;; ;;
i[34567]86-*-interix*) i[34567]86-*-interix*)
tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h" tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
xm_defines=POSIX
tmake_file="t-interix i386/t-interix" tmake_file="t-interix i386/t-interix"
extra_objs=winnt.o extra_objs=winnt.o
if test x$enable_threads = xyes ; then if test x$enable_threads = xyes ; then
...@@ -1393,7 +1353,6 @@ i960-*-coff*) ...@@ -1393,7 +1353,6 @@ i960-*-coff*)
cxx_target_objs="i960-c.o" cxx_target_objs="i960-c.o"
;; ;;
i960-*-rtems) i960-*-rtems)
xm_defines=POSIX
tmake_file="i960/t-960bare t-rtems" tmake_file="i960/t-960bare t-rtems"
tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h" tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/rtems.h rtems.h"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -1474,7 +1433,6 @@ m68000-hp-bsd*) # HP 9000/200 running BSD ...@@ -1474,7 +1433,6 @@ m68000-hp-bsd*) # HP 9000/200 running BSD
use_collect2=yes use_collect2=yes
;; ;;
m68000-hp-hpux*) # HP 9000 series 300 m68000-hp-hpux*) # HP 9000 series 300
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
tm_file=m68k/hp310g.h tm_file=m68k/hp310g.h
...@@ -1494,7 +1452,6 @@ m68000-sun-sunos4*) ...@@ -1494,7 +1452,6 @@ m68000-sun-sunos4*)
use_collect2=yes use_collect2=yes
;; ;;
m68000-att-sysv*) m68000-att-sysv*)
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
tm_file=m68k/3b1g.h tm_file=m68k/3b1g.h
...@@ -1505,7 +1462,6 @@ m68000-att-sysv*) ...@@ -1505,7 +1462,6 @@ m68000-att-sysv*)
;; ;;
m68k-atari-sysv4*) # Atari variant of V.4. m68k-atari-sysv4*) # Atari variant of V.4.
tm_file=m68k/atari.h tm_file=m68k/atari.h
xm_defines=POSIX
tmake_file=t-svr4 tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
...@@ -1516,7 +1472,6 @@ m68k-apollo-sysv* | m68k-bull-sysv*) ...@@ -1516,7 +1472,6 @@ m68k-apollo-sysv* | m68k-bull-sysv*)
;; ;;
m68k-motorola-sysv*) m68k-motorola-sysv*)
tm_file=m68k/mot3300.h tm_file=m68k/mot3300.h
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
if test x$gnu_ld = xyes if test x$gnu_ld = xyes
...@@ -1540,26 +1495,21 @@ m68k-motorola-sysv*) ...@@ -1540,26 +1495,21 @@ m68k-motorola-sysv*)
;; ;;
m68k-ncr-sysv*) # NCR Tower 32 SVR3 m68k-ncr-sysv*) # NCR Tower 32 SVR3
tm_file=m68k/tower-as.h tm_file=m68k/tower-as.h
xm_defines=POSIX
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
m68k-plexus-sysv*) m68k-plexus-sysv*)
tm_file=m68k/plexus.h tm_file=m68k/plexus.h
xm_defines=POSIX
use_collect2=yes use_collect2=yes
;; ;;
m68k-tti-*) m68k-tti-*)
tm_file=m68k/pbb.h tm_file=m68k/pbb.h
xm_defines=POSIX
;; ;;
m68k-crds-unos*) m68k-crds-unos*)
xm_defines=POSIX
tm_file=m68k/crds.h tm_file=m68k/crds.h
use_collect2=yes use_collect2=yes
;; ;;
m68k-cbm-sysv4*) # Commodore variant of V.4. m68k-cbm-sysv4*) # Commodore variant of V.4.
tm_file=m68k/amix.h tm_file=m68k/amix.h
xm_defines=POSIX
tmake_file=t-svr4 tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
...@@ -1576,7 +1526,6 @@ m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix ...@@ -1576,7 +1526,6 @@ m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
use_collect2=yes use_collect2=yes
;; ;;
m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
xmake_file=m68k/x-hp320g xmake_file=m68k/x-hp320g
...@@ -1589,7 +1538,6 @@ m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. ...@@ -1589,7 +1538,6 @@ m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
use_collect2=yes use_collect2=yes
;; ;;
m68k-hp-hpux*) # HP 9000 series 300 m68k-hp-hpux*) # HP 9000 series 300
xm_defines=POSIX
if test x$gas = xyes if test x$gas = xyes
then then
xmake_file=m68k/x-hp320g xmake_file=m68k/x-hp320g
...@@ -1633,7 +1581,6 @@ m68k-*-coff*) ...@@ -1633,7 +1581,6 @@ m68k-*-coff*)
;; ;;
m68020-*-elf* | m68k-*-elf*) m68020-*-elf* | m68k-*-elf*)
tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h" tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
xm_defines=POSIX
tmake_file=m68k/t-m68kelf tmake_file=m68k/t-m68kelf
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
...@@ -1662,7 +1609,6 @@ m68k*-*-openbsd*) ...@@ -1662,7 +1609,6 @@ m68k*-*-openbsd*)
;; ;;
m68k-*-sysv4*) # Motorola m68k's running system V.4 m68k-*-sysv4*) # Motorola m68k's running system V.4
tm_file=m68k/m68kv4.h tm_file=m68k/m68kv4.h
xm_defines=POSIX
tmake_file=t-svr4 tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
...@@ -1695,7 +1641,6 @@ m68k-*-rtemscoff*) # would otherwise be caught by m68k-*-rtems* ...@@ -1695,7 +1641,6 @@ m68k-*-rtemscoff*) # would otherwise be caught by m68k-*-rtems*
exit 1 exit 1
;; ;;
m68k-*-rtems*) m68k-*-rtems*)
xm_defines=POSIX
tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff" tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h" tm_file="m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
...@@ -1704,7 +1649,6 @@ m68k-*-rtems*) ...@@ -1704,7 +1649,6 @@ m68k-*-rtems*)
fi fi
;; ;;
m88k-*-aout*) m88k-*-aout*)
xm_defines=POSIX
tm_file=m88k/m88k-aout.h tm_file=m88k/m88k-aout.h
;; ;;
m88k-*-openbsd*) m88k-*-openbsd*)
...@@ -1712,7 +1656,6 @@ m88k-*-openbsd*) ...@@ -1712,7 +1656,6 @@ m88k-*-openbsd*)
tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}" tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
;; ;;
m88k-*-sysv4*) m88k-*-sysv4*)
xm_defines=POSIX
tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h" tm_file="dbxelf.h elfos.h svr4.h m88k/sysv4.h"
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
tmake_file=m88k/t-sysv4 tmake_file=m88k/t-sysv4
...@@ -1740,7 +1683,6 @@ mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI ...@@ -1740,7 +1683,6 @@ mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
fi fi
tm_file="${tm_file} mips/iris6-o32.h" tm_file="${tm_file} mips/iris6-o32.h"
tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6" tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
xm_defines=POSIX
xm_file=mips/xm-iris5.h xm_file=mips/xm-iris5.h
# mips-tfile doesn't work yet # mips-tfile doesn't work yet
# See comment in mips/iris5.h file. # See comment in mips/iris5.h file.
...@@ -1757,14 +1699,12 @@ mips-sgi-irix6*) # SGI System V.4., IRIX 6 ...@@ -1757,14 +1699,12 @@ mips-sgi-irix6*) # SGI System V.4., IRIX 6
tm_file=mips/iris6.h tm_file=mips/iris6.h
fi fi
tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6" tmake_file="mips/t-iris mips/t-iris5-6 mips/t-iris6"
xm_defines=POSIX
# if test x$enable_threads = xyes; then # if test x$enable_threads = xyes; then
# thread_file='irix' # thread_file='irix'
# fi # fi
;; ;;
mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
tm_file="mips/iris6.h mips/cross64.h" tm_file="mips/iris6.h mips/cross64.h"
xm_defines=POSIX
xm_file=mips/xm-iris5.h xm_file=mips/xm-iris5.h
tmake_file="mips/t-iris mips/t-cross64" tmake_file="mips/t-iris mips/t-cross64"
# See comment in mips/iris[56].h files. # See comment in mips/iris[56].h files.
...@@ -1785,7 +1725,6 @@ mips-sni-sysv4) ...@@ -1785,7 +1725,6 @@ mips-sni-sysv4)
else else
tm_file=mips/sni-svr4.h tm_file=mips/sni-svr4.h
fi fi
xm_defines=POSIX
if test x$gnu_ld != xyes if test x$gnu_ld != xyes
then then
use_collect2=yes use_collect2=yes
...@@ -1805,7 +1744,6 @@ mips-sgi-irix5*) # SGI System V.4., IRIX 5 ...@@ -1805,7 +1744,6 @@ mips-sgi-irix5*) # SGI System V.4., IRIX 5
tmake_file=mips/t-iris5-as tmake_file=mips/t-iris5-as
fi fi
tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6" tmake_file="${tmake_file} mips/t-iris mips/t-iris5-6"
xm_defines=POSIX
xm_file=mips/xm-iris5.h xm_file=mips/xm-iris5.h
# mips-tfile doesn't work yet # mips-tfile doesn't work yet
# See comment in mips/iris5.h file. # See comment in mips/iris5.h file.
...@@ -1915,7 +1853,6 @@ mips64orion-*-elf* | mips64orionel-*-elf*) ...@@ -1915,7 +1853,6 @@ mips64orion-*-elf* | mips64orionel-*-elf*)
tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
;; ;;
mips64orion-*-rtems*) mips64orion-*-rtems*)
xm_defines=POSIX
tm_file="${tm_file} mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h" tm_file="${tm_file} mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
tmake_file="mips/t-elf t-rtems" tmake_file="mips/t-elf t-rtems"
tmake_file=mips/t-elf tmake_file=mips/t-elf
...@@ -1926,7 +1863,6 @@ mips64orion-*-rtems*) ...@@ -1926,7 +1863,6 @@ mips64orion-*-rtems*)
fi fi
;; ;;
mips*-*-rtems*) mips*-*-rtems*)
xm_defines=POSIX
tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h" tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
tmake_file="mips/t-elf t-rtems" tmake_file="mips/t-elf t-rtems"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -1993,7 +1929,6 @@ powerpc64-*-gnu*) ...@@ -1993,7 +1929,6 @@ powerpc64-*-gnu*)
;; ;;
powerpc-*-beos*) powerpc-*-beos*)
tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/beos.h rs6000/xcoff.h"
xm_defines=POSIX
tmake_file="rs6000/t-fprules rs6000/t-beos" tmake_file="rs6000/t-fprules rs6000/t-beos"
extra_headers= extra_headers=
;; ;;
...@@ -2013,7 +1948,6 @@ powerpc*-*-freebsd*) ...@@ -2013,7 +1948,6 @@ powerpc*-*-freebsd*)
;; ;;
powerpc-*-sysv*) powerpc-*-sysv*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
xm_defines=POSIX
tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
;; ;;
powerpc-*-netbsd*) powerpc-*-netbsd*)
...@@ -2021,7 +1955,6 @@ powerpc-*-netbsd*) ...@@ -2021,7 +1955,6 @@ powerpc-*-netbsd*)
tmake_file="${tmake_file} rs6000/t-netbsd" tmake_file="${tmake_file} rs6000/t-netbsd"
;; ;;
powerpc-*-chorusos*) powerpc-*-chorusos*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h chorus.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
case x${enable_threads} in case x${enable_threads} in
...@@ -2031,42 +1964,34 @@ powerpc-*-chorusos*) ...@@ -2031,42 +1964,34 @@ powerpc-*-chorusos*)
esac esac
;; ;;
powerpc-*-eabiaix*) powerpc-*-eabiaix*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpc-*-eabispe*) powerpc-*-eabispe*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
;; ;;
powerpc-*-eabisimaltivec*) powerpc-*-eabisimaltivec*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
;; ;;
powerpc-*-eabisim*) powerpc-*-eabisim*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpc-*-elf*) powerpc-*-elf*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpc-*-eabialtivec*) powerpc-*-eabialtivec*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabialtivec.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
;; ;;
powerpc-*-eabi*) powerpc-*-eabi*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpc-*-rtems*) powerpc-*-rtems*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h"
tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-rtems t-rtems rs6000/t-ppccomm"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -2111,52 +2036,43 @@ powerpc-wrs-vxworks*) ...@@ -2111,52 +2036,43 @@ powerpc-wrs-vxworks*)
extra_headers=ppc-asm.h extra_headers=ppc-asm.h
;; ;;
powerpc-wrs-windiss*) powerpc-wrs-windiss*)
xm_defines=POSIX
tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h" tm_file="${tm_file} elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/windiss.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
thread_file="" thread_file=""
;; ;;
powerpcle-*-sysv*) powerpcle-*-sysv*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
xm_defines=POSIX
tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcos rs6000/t-ppccomm"
;; ;;
powerpcle-*-elf*) powerpcle-*-elf*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpcle-*-eabisim*) powerpcle-*-eabisim*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
powerpcle-*-eabi*) powerpcle-*-eabi*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm" tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
;; ;;
rs6000-ibm-aix3.[01]*) rs6000-ibm-aix3.[01]*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h rs6000/xcoff.h"
use_collect2=yes use_collect2=yes
;; ;;
rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h rs6000/xcoff.h"
tmake_file="rs6000/t-fprules rs6000/t-newas" tmake_file="rs6000/t-fprules rs6000/t-newas"
use_collect2=yes use_collect2=yes
extra_headers= extra_headers=
;; ;;
rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h rs6000/xcoff.h"
tmake_file="rs6000/t-fprules rs6000/t-newas" tmake_file="rs6000/t-fprules rs6000/t-newas"
use_collect2=yes use_collect2=yes
extra_headers= extra_headers=
;; ;;
rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h"
tmake_file=rs6000/t-aix43 tmake_file=rs6000/t-aix43
use_collect2=yes use_collect2=yes
...@@ -2164,7 +2080,6 @@ rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*) ...@@ -2164,7 +2080,6 @@ rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
extra_headers= extra_headers=
;; ;;
rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h"
tmake_file=rs6000/t-aix43 tmake_file=rs6000/t-aix43
use_collect2=yes use_collect2=yes
...@@ -2172,7 +2087,6 @@ rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*) ...@@ -2172,7 +2087,6 @@ rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
extra_headers= extra_headers=
;; ;;
rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
tmake_file=rs6000/t-aix52 tmake_file=rs6000/t-aix52
use_collect2=yes use_collect2=yes
...@@ -2180,18 +2094,15 @@ rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) ...@@ -2180,18 +2094,15 @@ rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
extra_headers= extra_headers=
;; ;;
rs6000-ibm-aix*) rs6000-ibm-aix*)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
use_collect2=yes use_collect2=yes
;; ;;
rs6000-bull-bosx) rs6000-bull-bosx)
xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h" tm_file="${tm_file} rs6000/aix.h rs6000/xcoff.h"
use_collect2=yes use_collect2=yes
;; ;;
rs6000-*-mach*) rs6000-*-mach*)
tm_file="${tm_file} rs6000/mach.h" tm_file="${tm_file} rs6000/mach.h"
xm_defines=POSIX
use_collect2=yes use_collect2=yes
;; ;;
rs6000-*-lynxos*) rs6000-*-lynxos*)
...@@ -2238,7 +2149,6 @@ sh-*-elf* | sh[2346l]*-*-elf*) ...@@ -2238,7 +2149,6 @@ sh-*-elf* | sh[2346l]*-*-elf*)
esac esac
;; ;;
sh-*-rtemself*) sh-*-rtemself*)
xm_defines=POSIX
tmake_file="sh/t-sh sh/t-elf t-rtems" tmake_file="sh/t-sh sh/t-elf t-rtems"
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/rtemself.h rtems.h"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -2246,7 +2156,6 @@ sh-*-rtemself*) ...@@ -2246,7 +2156,6 @@ sh-*-rtemself*)
fi fi
;; ;;
sh-*-rtems*) sh-*-rtems*)
xm_defines=POSIX
tmake_file="sh/t-sh t-rtems" tmake_file="sh/t-sh t-rtems"
tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h" tm_file="${tm_file} sh/coff.h sh/rtems.h rtems.h"
if test x$enable_threads = xyes; then if test x$enable_threads = xyes; then
...@@ -2320,7 +2229,6 @@ sh-*-*) ...@@ -2320,7 +2229,6 @@ sh-*-*)
;; ;;
sparc-tti-*) sparc-tti-*)
tm_file="${tm_file} sparc/pbd.h" tm_file="${tm_file} sparc/pbd.h"
xm_defines=POSIX
;; ;;
sparc-*-aout*) sparc-*-aout*)
tmake_file=sparc/t-sparcbare tmake_file=sparc/t-sparcbare
...@@ -2393,7 +2301,6 @@ sparc-*-rtemsaout*) # would otherwise be caught by sparc-*-rtems* ...@@ -2393,7 +2301,6 @@ sparc-*-rtemsaout*) # would otherwise be caught by sparc-*-rtems*
exit 1 exit 1
;; ;;
sparc-*-rtems*) sparc-*-rtems*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
tmake_file="sparc/t-elf sparc/t-crtfm t-rtems" tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
extra_parts="crti.o crtn.o crtbegin.o crtend.o" extra_parts="crti.o crtn.o crtbegin.o crtend.o"
...@@ -2409,7 +2316,6 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*) ...@@ -2409,7 +2316,6 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
if test x$gas = xyes; then if test x$gas = xyes; then
tm_file="${tm_file} sparc/sol2-gas-bi.h" tm_file="${tm_file} sparc/sol2-gas-bi.h"
fi fi
xm_defines=POSIX
tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm" tmake_file="sparc/t-sol2 sparc/t-sol2-64 sparc/t-crtfm"
if test x$gnu_ld = xyes; then if test x$gnu_ld = xyes; then
tmake_file="$tmake_file t-slibgcc-elf-ver" tmake_file="$tmake_file t-slibgcc-elf-ver"
...@@ -2433,7 +2339,6 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*) ...@@ -2433,7 +2339,6 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
need_64bit_hwint=yes need_64bit_hwint=yes
;; ;;
sparc-hal-solaris2*) sparc-hal-solaris2*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/hal.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/hal.h"
tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm" tmake_file="sparc/t-halos sparc/t-sol2 sparc/t-crtfm"
if test x$gnu_ld = xyes; then if test x$gnu_ld = xyes; then
...@@ -2474,7 +2379,6 @@ sparc-*-solaris2*) ...@@ -2474,7 +2379,6 @@ sparc-*-solaris2*)
need_64bit_hwint=yes need_64bit_hwint=yes
;; ;;
esac esac
xm_defines=POSIX
extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
if test x${enable_threads} = x; then if test x${enable_threads} = x; then
enable_threads=$have_pthread_h enable_threads=$have_pthread_h
...@@ -2508,7 +2412,6 @@ sparc-*-sunos3*) ...@@ -2508,7 +2412,6 @@ sparc-*-sunos3*)
;; ;;
sparc-*-sysv4*) sparc-*-sysv4*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h"
xm_defines=POSIX
tmake_file=t-svr4 tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o" extra_parts="crtbegin.o crtend.o"
;; ;;
...@@ -2595,7 +2498,6 @@ thumb*-*-*) ...@@ -2595,7 +2498,6 @@ thumb*-*-*)
*** when the -mthumb switch is given to the compiler." 1>&2; exit 1; } *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
;; ;;
v850-*-rtems*) v850-*-rtems*)
xm_defines=POSIX
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h" tm_file="dbxelf.h elfos.h svr4.h ${tm_file} v850/v850.h v850/rtems.h rtems.h"
tmake_file="v850/t-v850 t-rtems" tmake_file="v850/t-v850 t-rtems"
if test x$stabs = xyes if test x$stabs = xyes
...@@ -2639,7 +2541,6 @@ vax-*-bsd*) # VAXen running BSD ...@@ -2639,7 +2541,6 @@ vax-*-bsd*) # VAXen running BSD
;; ;;
vax-*-sysv*) # VAXen running system V vax-*-sysv*) # VAXen running system V
tm_file="${tm_file} vax/vaxv.h" tm_file="${tm_file} vax/vaxv.h"
xm_defines=POSIX
;; ;;
vax-*-netbsdelf*) vax-*-netbsdelf*)
tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h" tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
# fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD # fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD
# #
# COPYRIGHT # COPYRIGHT
# Copyright (C) 1993, 1994, 1997, 1998, 2002 Free Software Foundation, Inc. # Copyright (C) 1993, 1994, 1997, 1998, 2002, 2003
# Free Software Foundation, Inc.
# This file is part of GCC. # This file is part of GCC.
# #
# GCC is free software; you can redistribute it and/or modify # GCC is free software; you can redistribute it and/or modify
...@@ -133,13 +134,6 @@ if [ `echo $* | wc -w` != 0 ] ; then ...@@ -133,13 +134,6 @@ if [ `echo $* | wc -w` != 0 ] ; then
done done
fi fi
required_stdlib_h="abort abs atexit atof atoi atol bsearch calloc exit free getenv labs malloc putenv qsort rand realloc srand strtod strtol strtoul system"
# "div ldiv", - ignored because these depend on div_t, ldiv_t
# ignore these: "mblen mbstowcs mbstowc wcstombs wctomb"
# Left out getgroups, because SunOS4 has incompatible BSD and SVR4 versions.
# Should perhaps also add NULL
required_unistd_h="_exit access alarm chdir chown close ctermid cuserid dup dup2 execl execle execlp execv execve execvp fork fpathconf getcwd getegid geteuid getgid getlogin getopt getpgrp getpid getppid getuid isatty link lseek pathconf pause pipe read rmdir setgid setpgid setsid setuid sleep sysconf tcgetpgrp tcsetpgrp ttyname unlink write"
done_dirs="" done_dirs=""
subdirs_made="" subdirs_made=""
echo "" >fixproto.list echo "" >fixproto.list
...@@ -283,35 +277,57 @@ done ...@@ -283,35 +277,57 @@ done
# This might be more cleanly moved into the main loop, by adding # This might be more cleanly moved into the main loop, by adding
# a <dummy> source directory at the end. FIXME! # a <dummy> source directory at the end. FIXME!
for rel_source_file in unistd.h stdlib.h
do # All the headers we create define size_t and NULL.
if grep "$rel_source_file" fixproto.list >/dev/null for rel_source_file in unistd.h stdlib.h string.h time.h ; do
then true if grep "$rel_source_file" fixproto.list >/dev/null ; then
: # It exists, we don't need to make it
else else
echo Adding missing $rel_source_file echo Adding missing $rel_source_file
rel_source_ident=`echo $rel_source_file | tr ./ __` rel_source_ident=`echo $rel_source_file | tr ./ __`
required_list=`eval echo '${required_'${rel_source_ident}'-}'`
cat >tmp.h <<EOF cat >tmp.h <<EOF
/* Fake ${rel_source_file}, created by GCC.
The functions declared in this file do not necessarily exist in
your C library. */
#ifndef __${rel_source_ident} #ifndef __${rel_source_ident}
#define __${rel_source_ident} #define __${rel_source_ident}
EOF
if test $rel_source_file = stdlib.h
then
# Make sure it contains a definition of size_t.
cat >>tmp.h <<EOF
#define __need_NULL
#define __need_size_t #define __need_size_t
#include <stddef.h> #include <stddef.h>
EOF EOF
fi # Insert special stuff for particular files here.
case ${rel_source_file} in
time.h)
# If time.h doesn't exist, find out if sys/time.h does.
if test -f $src_dir_std/sys/time.h \
|| grep "sys/time.h" fixproto.list >/dev/null ; then
# It does; include it and hope it has the needed declarations.
# Some versions require sys/types.h.
cat >>tmp.h <<EOF
#include <sys/types.h>
#include <sys/time.h>
EOF
else
# It doesn't. Make up plausible definitions for time_t, clock_t.
# Forward-declare struct tm. Hope nobody tries to use it. (Odds
# are they won't.)
cat >>tmp.h <<EOF
typedef long time_t;
typedef long clock_t;
struct tm;
EOF
fi ;;
esac
cat >>tmp.h <<EOF cat >>tmp.h <<EOF
#endif /* __${rel_source_ident} */ #endif /* __${rel_source_ident} */
EOF EOF
${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path ${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path
if test $? != 0 ; then exit 1 ; fi if test $? != 0 ; then exit 1 ; fi
if test -f $abs_target_dir/$rel_source_file if test -f $abs_target_dir/$rel_source_file ; then
then
rm tmp.h rm tmp.h
else else
mv tmp.h $abs_target_dir/$rel_source_file mv tmp.h $abs_target_dir/$rel_source_file
......
...@@ -73,20 +73,16 @@ extern int atexit (void (*)(void)); ...@@ -73,20 +73,16 @@ extern int atexit (void (*)(void));
extern int errno; extern int errno;
#endif #endif
#ifdef POSIX
#include <string.h>
#endif
/* GCC (fixproto) guarantees these system headers exist. */ /* GCC (fixproto) guarantees these system headers exist. */
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
/* GCC supplies this header. */ /* GCC supplies this header. */
#include <limits.h> #include <limits.h>
#ifdef POSIX /* GCC (fixproto) guarantees this system headers exists. */
#include <time.h> #include <time.h>
#endif
#endif /* inhibit_libc */ #endif /* inhibit_libc */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment