This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Revised patch to generate string.h/time.h if missing
- To: gcc-patches at gcc dot gnu dot org
- Subject: Revised patch to generate string.h/time.h if missing
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Fri, 18 May 2001 12:49:51 -0700
This incorporates Kaveh's suggestions re what to do with time.h.
I can't bootstrap due to problems with libjava, but then again, no
system I have access to would actually _use_ the generated string.h
and/or time.h, so it's kinda moot. Anyone wanna give this a spin on a
really old machine?
--
zw But the voices in my head are what keeps me sane.
-- Shweta Narayan
* fixproto: Remove some unused variables. Generate string.h
and time.h if missing.
* tsystem.h: Include string.h and time.h unconditionally.
* config.gcc: Remove all definitions of POSIX.
===================================================================
Index: fixproto
--- fixproto 2001/01/27 21:07:57 1.11
+++ fixproto 2001/05/18 19:48:45
@@ -133,13 +133,6 @@ if [ `echo $* | wc -w` != 0 ] ; then
done
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=""
subdirs_made=""
echo "" >fixproto.list
@@ -283,27 +276,69 @@ done
# This might be more cleanly moved into the main loop, by adding
# a <dummy> source directory at the end. FIXME!
-for rel_source_file in unistd.h stdlib.h
+# All the headers we create define size_t and NULL.
+for rel_source_file in unistd.h stdlib.h string.h time.h
do
- if grep "$rel_source_file" fixproto.list >/dev/null
- then true
+ if grep "^$rel_source_file\$" fixproto.list >/dev/null
+ then : Nothing to do
else
echo Adding missing $rel_source_file
rel_source_ident=`echo $rel_source_file | tr ./ __`
- required_list=`eval echo '${required_'${rel_source_ident}'-}'`
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}
#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
#include <stddef.h>
+EOF
+ case $rel_source_file in
+ stdlib.h)
+ # If we have to create this file, the wide functions don't exist,
+ # so there is no point defining wchar_t.
+ # We make no attempt to define div_t or ldiv_t, which are only useful
+ # with more functions that don't exist.
+ cat >>tmp.h <<EOF
+
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
+#define RAND_MAX (~0) /* best guess */
+EOF
+ ;;
+ 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, so include it and hope it has the appropriate
+ # type declarations. Some versions require sys/types.h.
+ cat >>tmp.h <<EOF
+
+#include <sys/types.h>
+#include <sys/time.h>
+
EOF
- fi
+ else
+ # We're up a creek. Make some plausible definitions for
+ # time_t and clock_t.
+ cat >>tmp.h <<EOF
+
+typedef long time_t;
+typedef long clock_t;
+EOF
+ fi
+
+ # Odds are, even if we have sys/time.h, it doesn't declare
+ # struct tm. Forward-declare struct tm and hope no one tries
+ # to use it (the system probably doesn't have localtime,
+ # gmtime, or mktime either, so it's not so bad).
+ echo 'struct tm;' >>tmp.h
+ ;;
+ esac
+
cat >>tmp.h <<EOF
#endif /* __${rel_source_ident} */
===================================================================
Index: tsystem.h
--- tsystem.h 2001/05/01 03:48:04 1.3
+++ tsystem.h 2001/05/18 19:48:45
@@ -59,33 +59,25 @@ extern int atexit (void (*)(void));
/* GCC supplies this header. */
#include <stdarg.h>
-/* All systems have this header. */
+/* All systems have these headers. */
#include <stdio.h>
-
-/* All systems have this header. */
#include <sys/types.h>
-
-/* All systems have this header. */
#include <errno.h>
#ifndef errno
extern int errno;
#endif
-#ifdef POSIX
-#include <string.h>
-#endif
-
/* GCC (fixproto) guarantees these system headers exist. */
+#include <string.h>
#include <stdlib.h>
#include <unistd.h>
/* GCC supplies this header. */
#include <limits.h>
-#ifdef POSIX
+/* GCC (fixproto) guarantees this system header exists. */
#include <time.h>
-#endif
#endif /* inhibit_libc */
===================================================================
Index: config.gcc
--- config.gcc 2001/05/17 03:15:42 1.60
+++ config.gcc 2001/05/18 19:48:45
@@ -256,14 +256,10 @@ esac
# Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
case $machine in
-*-*-linux*)
- 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_defines=POSIX
tm_file="${cpu_type}/gnu.h"
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
# GNU always uses ELF.
@@ -287,7 +283,6 @@ case $machine in
*-*-openbsd*)
tm_file=${cpu_type}/openbsd.h
tmake_file="t-libc-ok t-openbsd"
- xm_defines=POSIX
if test x$enable_threads = xyes; then
thread_file='posix'
tmake_file="${tmake_file} t-openbsd-thread"
@@ -319,7 +314,6 @@ case $machine in
;;
a29k-*-bsd* | a29k-*-sym1*)
tm_file="${tm_file} a29k/unix.h"
- xm_defines=POSIX
use_collect2=yes
;;
a29k-*-udi | a29k-*-coff)
@@ -351,7 +345,6 @@ alpha-*-interix)
# GAS + IEEE_CONFORMANT
target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
- xm_defines=POSIX
xm_file="alpha/xm-alpha-interix.h xm-interix.h"
xmake_file=x-interix
tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
@@ -392,7 +385,6 @@ alpha*-*-linux*)
fi
;;
alpha*-*-freebsd*)
- xm_defines=POSIX
tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
target_cpu_default="MASK_GAS"
tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
@@ -407,7 +399,6 @@ alpha*-*-freebsd*)
esac
;;
alpha*-*-netbsd*)
- xm_defines=POSIX
tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
target_cpu_default="MASK_GAS"
tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
@@ -422,7 +413,6 @@ alpha*-*-openbsd*)
;;
alpha*-dec-osf*)
- xm_defines=POSIX
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"
@@ -460,7 +450,6 @@ alpha*-dec-osf*)
esac
;;
alpha*-*-vxworks*)
- xm_defines=POSIX
tm_file="${tm_file} dbx.h alpha/vxworks.h"
tmake_file="alpha/t-alpha alpha/t-ieee"
if [ x$gas != xyes ]
@@ -471,7 +460,6 @@ alpha*-*-vxworks*)
thread_file='vxworks'
;;
alpha*-dec-vms*)
- xm_defines=POSIX
tm_file=alpha/vms.h
xm_file=alpha/xm-vms.h
tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
@@ -602,7 +590,6 @@ c4x-*)
;;
clipper-intergraph-clix*)
tm_file="${tm_file} svr3.h clipper/clix.h"
- xm_defines=POSIX
extra_headers=va-clipper.h
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
@@ -690,14 +677,12 @@ hppa1.0-*-bsd*)
;;
hppa1.0-*-hpux7*)
tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux8.0[0-2]*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
if test x$gas != xyes
then
@@ -709,7 +694,6 @@ hppa1.0-*-hpux8.0[0-2]*)
hppa1.1-*-hpux8.0[0-2]*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
if test x$gas != xyes
then
@@ -721,14 +705,12 @@ hppa1.1-*-hpux8.0[0-2]*)
hppa1.1-*-hpux8*)
target_cpu_default="MASK_PA_11"
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux8*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
@@ -737,7 +719,6 @@ hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
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"
float_format=i128
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
tmake_file=pa/t-pa
if test x$enable_threads = x; then
@@ -754,7 +735,6 @@ hppa1.1-*-hpux10* | hppa2*-*-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"
float_format=i128
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
tmake_file=pa/t-pa
if test x$enable_threads = x; then
@@ -769,7 +749,6 @@ hppa1.0-*-hpux10*)
use_collect2=yes
;;
hppa*64*-*-hpux11*)
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
tmake_file=pa/t-pa
tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h pa/pa64-hpux.h"
@@ -791,7 +770,6 @@ hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
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"
float_format=i128
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
tmake_file=pa/t-pa
# if test x$enable_threads = x; then
@@ -807,7 +785,6 @@ hppa1.1-*-hpux11* | hppa2*-*-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"
float_format=i128
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
# if test x$enable_threads = x; then
# enable_threads=$have_pthread_h
@@ -822,14 +799,12 @@ hppa1.0-*-hpux11*)
hppa1.1-*-hpux* | hppa2*-*-hpux*)
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"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hpux*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
@@ -837,14 +812,12 @@ hppa1.0-*-hpux*)
hppa1.1-*-hiux* | hppa2*-*-hiux*)
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"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.0-*-hiux*)
tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
- xm_defines=POSIX
xmake_file=pa/x-pa-hpux
install_headers_dir=install-headers-cpio
use_collect2=yes
@@ -863,12 +836,12 @@ hppa*-*-mpeix*)
use_collect2=yes
;;
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
xmake_file=i370/x-oe
;;
i370-*-mvs*)
- xm_defines='POSIX FATAL_EXIT_CODE=12'
+ xm_defines='FATAL_EXIT_CODE=12'
tm_file=i370/mvs.h
;;
i370-*-linux*)
@@ -886,7 +859,6 @@ i370-*-linux*)
fi
;;
i[34567]86-*-chorusos*)
- xm_defines=POSIX
tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h i386/chorus.h"
tmake_file=i386/t-i386elf
xmake_file=x-svr4
@@ -897,7 +869,6 @@ i[34567]86-*-chorusos*)
esac
;;
i[34567]86-*-elf*)
- xm_defines=POSIX
tm_file="i386/i386.h i386/att.h elfos.h i386/i386elf.h"
tmake_file=i386/t-i386elf
xmake_file=x-svr4
@@ -912,10 +883,9 @@ i[34567]86-ibm-aix*) # IBM PS/2 running
tm_file=i386/aix386ng.h
use_collect2=yes
fi
- xm_defines=POSIX
;;
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
then
tm_file=i386/sysv4gdb.h
@@ -948,14 +918,12 @@ i[34567]86-sequent-bsd*) # 80386 from
fi
;;
i[34567]86-sequent-ptx1*)
- xm_defines=POSIX
tm_file=i386/seq-sysv3.h
tmake_file=i386/t-crtstuff
extra_parts="crtbegin.o crtend.o"
install_headers_dir=install-headers-cpio
;;
i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
- xm_defines=POSIX
tm_file=i386/seq2-sysv3.h
tmake_file=i386/t-crtstuff
extra_parts="crtbegin.o crtend.o"
@@ -966,7 +934,7 @@ i[34567]86-sequent-ptx4* | i[34567]86-se
then
tm_file="${tm_file} usegas.h"
fi
- xm_defines="POSIX SMALL_ARG_MAX"
+ xm_defines=SMALL_ARG_MAX
xmake_file=x-svr4
tm_file=i386/ptx4-i.h
tmake_file=t-svr4
@@ -974,7 +942,6 @@ i[34567]86-sequent-ptx4* | i[34567]86-se
install_headers_dir=install-headers-cpio
;;
i386-sun-sunos*) # Sun i386 roadrunner
- xm_defines=POSIX
tm_file=i386/sun.h
use_collect2=yes
;;
@@ -986,7 +953,6 @@ i[34567]86-*-aout*)
tm_file=i386/i386-aout.h
;;
i[34567]86-*-beoself* | i[34567]86-*-beos*)
- xm_defines=POSIX
tmake_file='i386/t-beos i386/t-crtpic'
tm_file=i386/beos-elf.h
xmake_file=i386/x-beos
@@ -1033,7 +999,6 @@ i[34567]86-*-coff*)
tm_file=i386/i386-coff.h
;;
i[34567]86-*-isc*) # 80386 running ISC system
- xm_defines=POSIX
if test x$gas = xyes -a x$stabs = xyes
then
tm_file=i386/iscdbx.h
@@ -1164,7 +1129,6 @@ i[34567]86-*-rtems*|i[34567]86-*-rtemsel
fi
;;
i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
- xm_defines=POSIX
xmake_file=i386/x-sco5
install_headers_dir=install-headers-cpio
tm_file=i386/sco5.h
@@ -1178,7 +1142,7 @@ i[34567]86-*-sco3.2v5*) # 80386 running
extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
i[34567]86-*-solaris2*)
- xm_defines="POSIX SMALL_ARG_MAX"
+ xm_defines=SMALL_ARG_MAX
tm_file=i386/sol2.h
if test x$gas = xyes; then
# Only needed if gas does not support -s
@@ -1202,7 +1166,6 @@ i[34567]86-*-solaris2*)
fi
;;
i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
- xm_defines=POSIX
tm_file=i386/sysv5.h
if test x$stabs = xyes
then
@@ -1216,7 +1179,7 @@ i[34567]86-*-sysv5*) # Intel x
fi
;;
i[34567]86-*-sysv4*) # Intel 80386's running system V.4
- xm_defines="POSIX SMALL_ARG_MAX"
+ xm_defines=SMALL_ARG_MAX
tm_file=i386/sysv4.h
if test x$stabs = xyes
then
@@ -1227,7 +1190,6 @@ i[34567]86-*-sysv4*) # Intel 80386's ru
extra_parts="crtbegin.o crtend.o"
;;
i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
- xm_defines=POSIX
tm_file=i386/udk.h
tmake_file="i386/t-crtpic i386/t-udk"
xmake_file=x-svr4
@@ -1237,7 +1199,7 @@ i[34567]86-*-udk*) # Intel x86 on S
i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
cpu_type=i386
xm_file=i386/xm-osf1elf.h
- xm_defines='POSIX USE_C_ALLOCA SMALL_ARG_MAX'
+ xm_defines='USE_C_ALLOCA SMALL_ARG_MAX'
if test x$stabs = xyes
then
tm_file=i386/osf1elfgdb.h
@@ -1248,7 +1210,6 @@ i[34567]86-*-osf1*) # Intel 80386's run
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
;;
i[34567]86-*-sysv*) # Intel 80386's running system V
- xm_defines=POSIX
if test x$gas = xyes
then
if test x$stabs = xyes
@@ -1273,7 +1234,6 @@ i386-*-vsta) # Intel 80386's running V
tm_file=i386/vsta.h
;;
i[34567]86-*-win32)
- xm_defines=POSIX
xm_file=i386/xm-cygwin.h
float_format=i386
tmake_file=i386/t-cygwin
@@ -1286,7 +1246,6 @@ i[34567]86-*-win32)
exeext=.exe
;;
i[34567]86-*-pe | i[34567]86-*-cygwin*)
- xm_defines=POSIX
xm_file=i386/xm-cygwin.h
float_format=i386
tmake_file=i386/t-cygwin
@@ -1301,7 +1260,6 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*)
i[34567]86-*-mingw32*)
tm_file=i386/mingw32.h
float_format=i386
- xm_defines=POSIX
xm_file=i386/xm-mingw32.h
tmake_file="i386/t-cygwin i386/t-mingw32"
extra_objs=winnt.o
@@ -1331,7 +1289,6 @@ i[34567]86-*-uwin*)
i[34567]86-*-interix*)
tm_file="i386/i386-interix.h interix.h"
xm_file="i386/xm-i386-interix.h xm-interix.h"
- xm_defines=POSIX
tmake_file="i386/t-interix"
extra_objs=interix.o
xmake_file=x-interix
@@ -1343,7 +1300,6 @@ i[34567]86-*-interix*)
fi
;;
i[34567]86-dg-dgux*)
- xm_defines=POSIX
out_file=i386/dgux.c
tm_file=i386/dgux.h
tmake_file=i386/t-dgux
@@ -1369,16 +1325,13 @@ i860-*-mach*)
;;
i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
tm_file="${tm_file} svr3.h i860/paragon.h"
- xm_defines=POSIX
;;
i860-*-sysv3*)
tm_file="${tm_file} svr3.h i860/sysv3.h"
- xm_defines=POSIX
extra_parts="crtbegin.o crtend.o"
;;
i860-*-sysv4*)
tm_file="${tm_file} svr4.h i860/sysv4.h"
- xm_defines=POSIX
tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o"
;;
@@ -1479,7 +1432,6 @@ m68hc12-*-*|m6812-*-*)
;;
m68000-convergent-sysv*)
tm_file=m68k/ctix.h
- xm_defines=POSIX
use_collect2=yes
extra_headers=math-68881.h
;;
@@ -1489,7 +1441,6 @@ m68000-hp-bsd*) # HP 9000/200 running
extra_headers=math-68881.h
;;
m68000-hp-hpux*) # HP 9000 series 300
- xm_defines=POSIX
if test x$gas = xyes
then
xmake_file=m68k/x-hp320g
@@ -1513,7 +1464,6 @@ m68000-sun-sunos4*)
extra_headers=math-68881.h
;;
m68000-att-sysv*)
- xm_defines=POSIX
if test x$gas = xyes
then
tm_file=m68k/3b1g.h
@@ -1524,7 +1474,6 @@ m68000-att-sysv*)
extra_headers=math-68881.h
;;
m68k-apple-aux*) # Apple Macintosh running A/UX
- xm_defines=POSIX
tmake_file=m68k/t-aux
install_headers_dir=install-headers-cpio
extra_headers=math-68881.h
@@ -1555,7 +1504,6 @@ m68k-altos-sysv*) # Altos 3068
if test x$gas = xyes
then
tm_file=m68k/altos3068.h
- xm_defines=POSIX
else
echo "The Altos is supported only with the GNU assembler" 1>&2
exit 1
@@ -1574,13 +1522,11 @@ m68k-bull-sysv*) # Bull DPX/2
else
tm_file=m68k/dpx2.h
fi
- xm_defines=POSIX
use_collect2=yes
extra_headers=math-68881.h
;;
m68k-atari-sysv4*) # Atari variant of V.4.
tm_file=m68k/atari.h
- xm_defines=POSIX
tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o"
extra_headers=math-68881.h
@@ -1588,7 +1534,6 @@ m68k-atari-sysv4*) # Atari
;;
m68k-motorola-sysv*)
tm_file=m68k/mot3300.h
- xm_defines=POSIX
if test x$gas = xyes
then
if test x$gnu_ld = xyes
@@ -1614,30 +1559,25 @@ m68k-motorola-sysv*)
;;
m68k-ncr-sysv*) # NCR Tower 32 SVR3
tm_file=m68k/tower-as.h
- xm_defines=POSIX
extra_parts="crtbegin.o crtend.o"
extra_headers=math-68881.h
;;
m68k-plexus-sysv*)
tm_file=m68k/plexus.h
- xm_defines=POSIX
use_collect2=yes
extra_headers=math-68881.h
;;
m68k-tti-*)
tm_file=m68k/pbb.h
- xm_defines=POSIX
extra_headers=math-68881.h
;;
m68k-crds-unos*)
- xm_defines=POSIX
tm_file=m68k/crds.h
use_collect2=yes
extra_headers=math-68881.h
;;
m68k-cbm-sysv4*) # Commodore variant of V.4.
tm_file=m68k/amix.h
- xm_defines=POSIX
tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o"
extra_headers=math-68881.h
@@ -1673,7 +1613,6 @@ m68k-isi-bsd*)
extra_headers=math-68881.h
;;
m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
- xm_defines=POSIX
if test x$gas = xyes
then
xmake_file=m68k/x-hp320g
@@ -1688,7 +1627,6 @@ m68k-hp-hpux7*) # HP 9000 series 300 run
float_format=m68k
;;
m68k-hp-hpux*) # HP 9000 series 300
- xm_defines=POSIX
if test x$gas = xyes
then
xmake_file=m68k/x-hp320g
@@ -1794,7 +1732,6 @@ m68k-*-coff*)
;;
m68020-*-elf* | m68k-*-elf*)
tm_file="m68k/m68020-elf.h"
- xm_defines=POSIX
tmake_file=m68k/t-m68kelf
header_files=math-68881.h
;;
@@ -1821,14 +1758,12 @@ m68k*-*-openbsd*)
use_collect2=yes
;;
m68k-*-sysv3*) # Motorola m68k's running system V.3
- xm_defines=POSIX
extra_parts="crtbegin.o crtend.o"
extra_headers=math-68881.h
float_format=m68k
;;
m68k-*-sysv4*) # Motorola m68k's running system V.4
tm_file=m68k/m68kv4.h
- xm_defines=POSIX
tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o"
extra_headers=math-68881.h
@@ -1893,7 +1828,6 @@ m68k-*-rtemself*|m68k-*-rtems*)
fi
;;
m88k-dg-dgux*)
- xm_defines=POSIX
case $machine in
m88k-dg-dguxbcs*)
tm_file=m88k/dguxbcs.h
@@ -1912,7 +1846,6 @@ m88k-dg-dgux*)
fi
;;
m88k-dolphin-sysv3*)
- xm_defines=POSIX
tm_file=m88k/dolph.h
extra_parts="crtbegin.o crtend.o"
xmake_file=m88k/x-dolph
@@ -1922,7 +1855,6 @@ m88k-dolphin-sysv3*)
fi
;;
m88k-tektronix-sysv3)
- xm_defines=POSIX
tm_file=m88k/tekXD88.h
extra_parts="crtbegin.o crtend.o"
xmake_file=m88k/x-tekXD88
@@ -1932,11 +1864,9 @@ m88k-tektronix-sysv3)
fi
;;
m88k-*-aout*)
- xm_defines=POSIX
tm_file=m88k/m88k-aout.h
;;
m88k-*-coff*)
- xm_defines=POSIX
tm_file=m88k/m88k-coff.h
tmake_file=m88k/t-bug
;;
@@ -1955,7 +1885,6 @@ m88k-*-openbsd*)
tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
;;
m88k-*-sysv3*)
- xm_defines=POSIX
tm_file=m88k/sysv3.h
extra_parts="crtbegin.o crtend.o"
if test x$gas = xyes
@@ -1964,7 +1893,6 @@ m88k-*-sysv3*)
fi
;;
m88k-*-sysv4*)
- xm_defines=POSIX
tm_file=m88k/sysv4.h
extra_parts="crtbegin.o crtend.o"
tmake_file=m88k/t-sysv4
@@ -1985,7 +1913,6 @@ mips-sgi-irix6*) # SGI System V.4., IRI
tm_file=mips/iris6.h
fi
tmake_file=mips/t-iris6
- xm_defines=POSIX
xmake_file=mips/x-iris6
# if test x$enable_threads = xyes; then
# thread_file='irix'
@@ -2001,7 +1928,6 @@ mips-wrs-vxworks)
;;
mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
tm_file="mips/iris6.h mips/cross64.h"
- xm_defines=POSIX
xm_file=mips/xm-iris5.h
xmake_file=mips/x-iris
tmake_file=mips/t-cross64
@@ -2023,7 +1949,6 @@ mips-sni-sysv4)
else
tm_file=mips/sni-svr4.h
fi
- xm_defines=POSIX
if test x$gnu_ld != xyes
then
use_collect2=yes
@@ -2040,7 +1965,6 @@ mips-sgi-irix5*) # SGI System V.4., IRI
else
tm_file=mips/iris5.h
fi
- xm_defines=POSIX
xm_file=mips/xm-iris5.h
xmake_file=mips/x-iris
# mips-tfile doesn't work yet
@@ -2055,7 +1979,6 @@ mips-sgi-irix4loser*) # Mostly like a M
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
xmake_file=mips/x-iris
if test x$gas = xyes
then :
@@ -2075,7 +1998,6 @@ mips-sgi-irix4*) # Mostly like a MIPS.
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
xmake_file=mips/x-iris
if test x$gas = xyes
then :
@@ -2095,7 +2017,6 @@ mips-sgi-*) # Mostly like a MIPS.
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then :
else
@@ -2188,7 +2109,6 @@ mips-sony-sysv*) # Sony NEWS 3800 with
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then :
else
@@ -2204,7 +2124,6 @@ mips-tandem-sysv4*) # Tandem S2 running
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then
extra_parts="crtbegin.o crtend.o"
@@ -2288,7 +2207,6 @@ mips-*-sysv4* | mips-*-riscos[1234]sysv4
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then
tmake_file=mips/t-svr4-gas
@@ -2306,7 +2224,6 @@ mips-*-riscos[56789]sysv*)
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then
tmake_file=mips/t-svr3-gas
@@ -2324,7 +2241,6 @@ mips-*-sysv* | mips-*-riscos*sysv*)
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
- xm_defines=POSIX
if test x$gas = xyes
then
tmake_file=mips/t-svr3-gas
@@ -2473,7 +2389,7 @@ ns32k-pc532-mach*)
;;
ns32k-pc532-minix*)
tm_file=ns32k/pc532-min.h
- xm_defines='POSIX HZ=60'
+ xm_defines='HZ=60'
use_collect2=yes
;;
ns32k-*-netbsd*)
@@ -2516,7 +2432,6 @@ powerpc-*-openbsd*)
powerpc-*-beos*)
cpu_type=rs6000
tm_file="${tm_file} rs6000/aix.h rs6000/beos.h"
- xm_defines=POSIX
xm_file=rs6000/xm-beos.h
tmake_file=rs6000/t-beos
;;
@@ -2536,12 +2451,10 @@ powerpc-*-darwin*)
;;
powerpc-*-sysv*)
tm_file="${tm_file} svr4.h rs6000/sysv4.h"
- xm_defines=POSIX
extra_headers=ppc-asm.h
tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
;;
powerpc-*-chorusos*)
- xm_defines=POSIX
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
@@ -2552,31 +2465,26 @@ powerpc-*-chorusos*)
esac
;;
powerpc-*-eabiaix*)
- xm_defines=POSIX
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*)
- xm_defines=POSIX
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*)
- xm_defines=POSIX
tm_file="${tm_file} svr4.h rs6000/sysv4.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpc-*-eabi*)
- xm_defines=POSIX
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*)
- xm_defines=POSIX
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
@@ -2606,7 +2514,6 @@ powerpc-*-linux*)
;;
powerpc-wrs-vxworks*)
cpu_type=rs6000
- xm_defines=POSIX
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
@@ -2614,7 +2521,6 @@ powerpc-wrs-vxworks*)
;;
powerpcle-wrs-vxworks*)
cpu_type=rs6000
- xm_defines=POSIX
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
@@ -2622,56 +2528,47 @@ powerpcle-wrs-vxworks*)
;;
powerpcle-*-sysv*)
tm_file="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h"
- xm_defines=POSIX
tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
powerpcle-*-elf*)
- xm_defines=POSIX
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*)
- xm_defines=POSIX
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*)
- xm_defines=POSIX
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="${tm_file} svr4.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
- xm_defines=POSIX
tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
extra_headers=ppc-asm.h
;;
rs6000-ibm-aix3.[01]*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix31.h"
float_format=none
use_collect2=yes
;;
rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix3newas.h"
tmake_file=rs6000/t-newas
float_format=none
use_collect2=yes
;;
rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix41.h"
tmake_file=rs6000/t-newas
float_format=none
use_collect2=yes
;;
rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix43.h"
tmake_file=rs6000/t-aix43
float_format=none
@@ -2679,7 +2576,6 @@ rs6000-ibm-aix4.[3456789]* | powerpc-ibm
thread_file='aix'
;;
rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h rs6000/aix51.h"
tmake_file=rs6000/t-aix43
float_format=none
@@ -2687,20 +2583,17 @@ rs6000-ibm-aix[56789].* | powerpc-ibm-ai
thread_file='aix'
;;
rs6000-ibm-aix*)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h"
float_format=none
use_collect2=yes
;;
rs6000-bull-bosx)
- xm_defines=POSIX
tm_file="${tm_file} rs6000/aix.h"
float_format=none
use_collect2=yes
;;
rs6000-*-mach*)
tm_file="rs6000/rs6000.h rs6000/mach.h"
- xm_defines=POSIX
use_collect2=yes
;;
rs6000-*-lynxos*)
@@ -2744,7 +2637,6 @@ sh-*-*)
;;
sparc-tti-*)
tm_file=sparc/pbd.h
- xm_defines=POSIX
;;
sparc64-wrs-vxworks*)
tm_file="sparc/sol2.h sparc/elf.h sparc/vxsparc64.h"
@@ -2848,7 +2740,6 @@ sparcv9-*-solaris2*)
else
tm_file=sparc/sol2-sld-64.h
fi
- xm_defines=POSIX
tmake_file="sparc/t-sol2 sparc/t-sol2-64"
if test x$gnu_ld = xyes; then
tmake_file="$tmake_file sparc/t-slibgcc"
@@ -2872,7 +2763,6 @@ sparcv9-*-solaris2*)
fi
;;
sparc-hal-solaris2*)
- xm_defines=POSIX
tm_file="sparc/sol2.h sparc/hal.h"
tmake_file="sparc/t-halos sparc/t-sol2"
if test x$gnu_ld = xyes; then
@@ -2898,7 +2788,6 @@ sparc-*-solaris2*)
else
tm_file=sparc/sol2-sld.h
fi
- xm_defines=POSIX
tmake_file=sparc/t-sol2
if test x$gnu_ld = xyes; then
tmake_file="$tmake_file sparc/t-slibgcc"
@@ -2959,12 +2848,10 @@ sparc-*-sunos3*)
;;
sparc-*-sysv4*)
tm_file=sparc/sysv4.h
- xm_defines=POSIX
tmake_file=t-svr4
extra_parts="crtbegin.o crtend.o"
;;
sparc-*-vxsim*)
- xm_defines=POSIX
tm_file=sparc/vxsim.h
tmake_file=sparc/t-vxsparc
;;
@@ -3068,7 +2955,6 @@ vax-*-bsd*) # vaxen running BSD
;;
vax-*-sysv*) # vaxen running system V
tm_file="${tm_file} vax/vaxv.h"
- xm_defines=POSIX
float_format=vax
;;
vax-*-netbsd*)
@@ -3095,7 +2981,6 @@ vax-*-*) # vax default entry
float_format=vax
;;
we32k-att-sysv*)
- xm_defines=POSIX
use_collect2=yes
;;
xscale-*-elf)