This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Generate string.h and time.h if nonexistent; kill POSIX


This patch augments the existing fixproto logic to create missing C89
headers, so it can do string.h and time.h too.  Then tsystem.h can
include them unconditionally, and we don't need to check POSIX
anymore.

I caused fixproto to generate the headers in question and read them.
They look sane.  However, all the machines I have access to are far
too modern to test this stuff properly.  The patch needs a test on a
system with a K+R libc.  I'm particularly worried about what happens
with time.h.

zw

	* fixproto (required_stdlib_h, required_unistd_h): Kill, not used.
	(file generation loop): Add logic for time.h and string.h.
	Rearrange for comprehensibility.

	* tsystem.h: Include string.h and time.h unconditionally.
	* config.gcc (all systems): Don't define POSIX.
	(*-*-linux): Remove block, now empty.

===================================================================
Index: fixproto
--- fixproto	2001/01/27 21:07:57	1.11
+++ fixproto	2001/05/01 06:47:47
@@ -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,60 @@ 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
-    fi
+	;;
+	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.
+	echo '#include <sys/time.h>' >>tmp.h
+	else
+	# We're up a creek.  Make some plausible definitions for
+	# time_t and clock_t.  Forward-declare struct tm and hope
+	# no one tries to use it (odds are the system doesn't have
+	# localtime/gmtime/mktime either, so it's not so bad).
+	cat >>tmp.h <<EOF
+
+typedef long time_t;
+typedef long clock_t;
+struct tm;
+EOF
+	fi;;
+    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/01 06:47:46
@@ -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/01 03:48:04	1.55
+++ config.gcc	2001/05/01 06:47:47
@@ -260,14 +260,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.
@@ -291,7 +287,6 @@ case $machine in
 *-*-openbsd*)
 	tm_file=${cpu_type}/openbsd.h
 	tmake_file="t-libc-ok t-openbsd"
-	xm_defines=POSIX
 	# don't depend on processor x-fragments as well
 	xmake_file=
 	if test x$enable_threads = xyes; then
@@ -325,7 +320,6 @@ case $machine in
 	;;
 a29k-*-bsd* | a29k-*-sym1*)
 	tm_file="${tm_file} a29k/unix.h"
-	xm_defines=POSIX
 	xmake_file=a29k/x-unix
 	use_collect2=yes
 	;;
@@ -358,7 +352,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"
@@ -399,7 +392,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"
@@ -414,7 +406,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"
@@ -429,7 +420,6 @@ alpha*-*-openbsd*)
 	;;
 	
 alpha*-dec-osf*)
-	xm_defines=POSIX
 	if test x$stabs = xyes
 	then
 		tm_file="${tm_file} dbx.h"
@@ -468,7 +458,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 ]
@@ -479,7 +468,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"
@@ -610,7 +598,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
@@ -700,14 +687,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
@@ -719,7 +704,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
@@ -731,14 +715,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
@@ -747,7 +729,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
@@ -764,7 +745,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
@@ -779,7 +759,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"
@@ -801,7 +780,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
@@ -817,7 +795,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
@@ -832,14 +809,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
@@ -847,14 +822,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
@@ -873,13 +846,13 @@ 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
 	tmake_file=i370/t-oe
 	;;
 i370-*-mvs*)
-	xm_defines='POSIX FATAL_EXIT_CODE=12'
+	xm_defines='FATAL_EXIT_CODE=12'
 	tm_file=i370/mvs.h
 	tmake_file=i370/t-mvs
 	;;
@@ -898,7 +871,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
@@ -909,7 +881,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
@@ -924,11 +895,10 @@ i[34567]86-ibm-aix*)		# IBM PS/2 running
 		tm_file=i386/aix386ng.h
 		use_collect2=yes
 	fi
-	xm_defines=POSIX
 	xmake_file=i386/x-aix
 	;;
 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
@@ -961,14 +931,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"
@@ -979,7 +947,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
@@ -987,7 +955,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
 	;;
@@ -1001,7 +968,6 @@ i[34567]86-*-aout*)
 	tmake_file=i386/t-i386bare
 	;;
 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
@@ -1049,7 +1015,6 @@ i[34567]86-*-coff*)
 	tmake_file=i386/t-i386bare
 	;;
 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
@@ -1184,7 +1149,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
@@ -1199,7 +1163,7 @@ i[34567]86-*-sco3.2v5*)	# 80386 running 
 	extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
 	;;
 i[34567]86-*-sco3.2v4*) 	# 80386 running SCO 3.2v4 system
-	xm_defines="POSIX BROKEN_LDEXP SMALL_ARG_MAX"
+	xm_defines="BROKEN_LDEXP SMALL_ARG_MAX"
 	xmake_file=i386/x-sco4
 	install_headers_dir=install-headers-cpio
         if test x$stabs = xyes
@@ -1234,7 +1198,7 @@ i[34567]86-*-sco*)	 	# 80386 running SCO
 	truncate_target=yes
 	;;
 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
@@ -1258,7 +1222,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
@@ -1272,7 +1235,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
@@ -1283,7 +1246,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-i386bare i386/t-crtpic i386/t-udk"
 	xmake_file=x-svr4
@@ -1293,7 +1255,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
@@ -1305,7 +1267,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
@@ -1331,7 +1292,6 @@ i386-*-vsta)			# Intel 80386's running V
 	tmake_file=i386/t-vsta
 	;;
 i[34567]86-*-win32)
-	xm_defines=POSIX
 	xm_file=i386/xm-cygwin.h
 	float_format=i386
 	tmake_file=i386/t-cygwin
@@ -1344,7 +1304,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
@@ -1359,7 +1318,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
@@ -1389,7 +1347,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
@@ -1401,7 +1358,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
@@ -1427,16 +1383,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"
 	;;
@@ -1538,7 +1491,6 @@ m68hc12-*-*|m6812-*-*)
         ;;
 m68000-convergent-sysv*)
 	tm_file=m68k/ctix.h
-	xm_defines=POSIX
 	use_collect2=yes
 	extra_headers=math-68881.h
 	;;
@@ -1548,7 +1500,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
@@ -1572,7 +1523,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
@@ -1583,7 +1533,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
@@ -1614,7 +1563,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
@@ -1633,14 +1581,12 @@ m68k-bull-sysv*)		# Bull DPX/2
 	else
 		tm_file=m68k/dpx2.h
 	fi
-	xm_defines=POSIX
 	xmake_file=m68k/x-dpx2
 	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
@@ -1648,7 +1594,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
@@ -1674,30 +1619,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
@@ -1733,7 +1673,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
@@ -1748,7 +1687,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
@@ -1854,7 +1792,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
 	;;
@@ -1881,14 +1818,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
@@ -1953,7 +1888,6 @@ m68k-*-rtemself*|m68k-*-rtems*)
 	fi
 	;;
 m88k-dg-dgux*)
-	xm_defines=POSIX
 	case $machine in
 	  m88k-dg-dguxbcs*)
 	    tm_file=m88k/dguxbcs.h
@@ -1972,7 +1906,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
@@ -1982,7 +1915,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
@@ -1992,11 +1924,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
 	;;
@@ -2015,7 +1945,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
@@ -2024,7 +1953,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
@@ -2045,7 +1973,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'
@@ -2061,7 +1988,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
@@ -2083,7 +2009,6 @@ mips-sni-sysv4)
 	else
 		tm_file=mips/sni-svr4.h
 	fi
-	xm_defines=POSIX
         tmake_file=mips/t-mips-gas
         if test x$gnu_ld != xyes
         then
@@ -2101,7 +2026,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
@@ -2117,7 +2041,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
@@ -2138,7 +2061,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
@@ -2159,7 +2081,6 @@ mips-sgi-*)			# Mostly like a MIPS.
 	if test x$stabs = xyes; then
 		tm_file="${tm_file} dbx.h"
 	fi
-	xm_defines=POSIX
 	xmake_file=mips/x-iris3
 	if test x$gas = xyes
 	then
@@ -2260,7 +2181,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
 		tmake_file=mips/t-mips-gas
@@ -2277,7 +2197,6 @@ mips-tandem-sysv4*)		# Tandem S2 running
 	if test x$stabs = xyes; then
 		tm_file="${tm_file} dbx.h"
 	fi
-	xm_defines=POSIX
 	xmake_file=mips/x-sysv
 	if test x$gas = xyes
 	then
@@ -2366,7 +2285,6 @@ mips-*-sysv4* | mips-*-riscos[1234]sysv4
 	if test x$stabs = xyes; then
 		tm_file="${tm_file} dbx.h"
 	fi
-	xm_defines=POSIX
 	xmake_file=mips/x-sysv
 	if test x$gas = xyes
 	then
@@ -2385,7 +2303,6 @@ mips-*-riscos[56789]sysv*)
 	if test x$stabs = xyes; then
 		tm_file="${tm_file} dbx.h"
 	fi
-	xm_defines=POSIX
 	xmake_file=mips/x-sysv
 	if test x$gas = xyes
 	then
@@ -2404,7 +2321,6 @@ mips-*-sysv* | mips-*-riscos*sysv*)
 	if test x$stabs = xyes; then
 		tm_file="${tm_file} dbx.h"
 	fi
-	xm_defines=POSIX
 	xmake_file=mips/x-sysv
 	if test x$gas = xyes
 	then
@@ -2556,7 +2472,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*)
@@ -2599,7 +2515,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
 	;;
@@ -2619,12 +2534,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
@@ -2635,31 +2548,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
@@ -2689,7 +2597,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
@@ -2697,7 +2604,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
@@ -2705,50 +2611,42 @@ 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"
 	xmake_file=rs6000/x-aix31
 	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
 	xmake_file=rs6000/x-aix41
@@ -2756,7 +2654,6 @@ rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4
 	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
 	xmake_file=rs6000/x-aix41
@@ -2765,7 +2662,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
 	xmake_file=rs6000/x-aix41
@@ -2774,20 +2670,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/mach.h
-	xm_defines=POSIX
 	use_collect2=yes
 	;;
 rs6000-*-lynxos*)
@@ -2831,7 +2724,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"
@@ -2935,7 +2827,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"
@@ -2959,7 +2850,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
@@ -2985,7 +2875,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"
@@ -3047,12 +2936,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
 	;;
@@ -3158,7 +3045,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*)
@@ -3186,7 +3072,6 @@ vax-*-*)			# vax default entry
 	float_format=vax
 	;;
 we32k-att-sysv*)
-	xm_defines=POSIX
 	use_collect2=yes
 	;;
 xscale-*-elf)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]