diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-25 05:23:38 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-25 05:23:38 +0000 |
commit | 65ded2ec6670122cd671eb4c71f7363a2f359771 (patch) | |
tree | 8fb8976db3ab6eab6495ba295e4851a9fb4ded39 | |
parent | 0b9fb855e0a1057589cfb9d30b1587b9ead455b8 (diff) | |
download | gcc-65ded2ec6670122cd671eb4c71f7363a2f359771.tar.gz |
* xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h,
i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h,
i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h,
i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h,
m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h,
mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h:
Don't define any of:
USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H,
P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS,
NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex,
index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK,
STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN.
* alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h,
fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro
definitions.
* m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h:
Delete now-empty file.
* alpha/vms.h: Define NEED_ATEXIT here...
* alpha/xm-vms.h: ...not here.
* i386/cygwin.h: Don't define PARAMS.
* mips/mips.c: Don't prototype mktemp. Don't define
P_tmpdir. Use make_temp_file to create temporary files.
Don't be clever and delete temporary files early.
* f/com.c: Don't define STDC_HEADERS, autoconf handles it.
* config.gcc: Drop references to deleted files. Don't define
FULL_PROTOTYPES.
* gcc.texi: Don't mention USE_PROTOTYPES.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40048 138bc75d-0d04-0410-961f-82ee72b054a4
35 files changed, 75 insertions, 408 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd686a8414d..3509136205c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,36 @@ +2001-02-24 Zack Weinberg <zackw@stanford.edu> + + * xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h, + i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h, + i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h, + i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h, + m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h, + mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h: + Don't define any of: + USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H, + P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS, + NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex, + index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK, + STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN. + + * alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h, + fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro + definitions. + + * m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h: + Delete now-empty file. + + * alpha/vms.h: Define NEED_ATEXIT here... + * alpha/xm-vms.h: ...not here. + + * i386/cygwin.h: Don't define PARAMS. + * mips/mips.c: Don't prototype mktemp. Don't define + P_tmpdir. Use make_temp_file to create temporary files. + Don't be clever and delete temporary files early. + * config.gcc: Drop references to deleted files. Don't define + FULL_PROTOTYPES. + * gcc.texi: Don't mention USE_PROTOTYPES. + Sat Feb 24 20:25:29 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * config/i386/i386.c (ix86_set_move_mem_attrs): New function. diff --git a/gcc/config.gcc b/gcc/config.gcc index e5c57d9041e..a58a6736e63 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1621,7 +1621,6 @@ m68hc12-*-*|m6812-*-*) ;; m68000-convergent-sysv*) tm_file=m68k/ctix.h - xm_file="m68k/xm-3b1.h ${xm_file}" xm_defines=USG use_collect2=yes extra_headers=math-68881.h @@ -1658,7 +1657,6 @@ m68000-sun-sunos4*) extra_headers=math-68881.h ;; m68000-att-sysv*) - xm_file="m68k/xm-3b1.h ${xm_file}" xm_defines=USG if test x$gas = xyes then @@ -1730,7 +1728,7 @@ m68k-bull-sysv*) # Bull DPX/2 m68k-atari-sysv4*) # Atari variant of V.4. tm_file=m68k/atari.h xm_file="xm-alloca.h ${xm_file}" - xm_defines="USG FULL_PROTOTYPES" + xm_defines=USG tmake_file=t-svr4 extra_parts="crtbegin.o crtend.o" extra_headers=math-68881.h @@ -1785,7 +1783,7 @@ m68k-tti-*) extra_headers=math-68881.h ;; m68k-crds-unos*) - xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" + xm_file="xm-alloca.h ${xm_file}" xm_defines="USG unos" xmake_file=m68k/x-crds tm_file=m68k/crds.h @@ -1795,7 +1793,7 @@ m68k-crds-unos*) m68k-cbm-sysv4*) # Commodore variant of V.4. tm_file=m68k/amix.h xm_file="xm-alloca.h ${xm_file}" - xm_defines="USG FULL_PROTOTYPES" + xm_defines=USG xmake_file=m68k/x-amix tmake_file=t-svr4 extra_parts="crtbegin.o crtend.o" @@ -2081,7 +2079,6 @@ m88k-dg-dgux*) m88k-dolphin-sysv3*) tm_file=m88k/dolph.h extra_parts="crtbegin.o crtend.o" - xm_file="m88k/xm-sysv3.h ${xm_file}" xmake_file=m88k/x-dolph if test x$gas = xyes then @@ -2091,7 +2088,6 @@ m88k-dolphin-sysv3*) m88k-tektronix-sysv3) tm_file=m88k/tekXD88.h extra_parts="crtbegin.o crtend.o" - xm_file="m88k/xm-sysv3.h ${xm_file}" xmake_file=m88k/x-tekXD88 if test x$gas = xyes then @@ -2123,7 +2119,6 @@ m88k-*-openbsd*) m88k-*-sysv3*) tm_file=m88k/sysv3.h extra_parts="crtbegin.o crtend.o" - xm_file="m88k/xm-sysv3.h ${xm_file}" xmake_file=m88k/x-sysv3 if test x$gas = xyes then diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h index c7e9f741b6c..870acd233c5 100644 --- a/gcc/config/alpha/vms.h +++ b/gcc/config/alpha/vms.h @@ -1,5 +1,5 @@ /* Output variables, constants and external declarations, for GNU compiler. - Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -470,3 +470,6 @@ do { \ #define DIR_SEPARATOR ']' #define PREFIX "GNU_ROOT:" + +/* XXX Really? Even with modern CRTL? */ +#define NEED_ATEXIT diff --git a/gcc/config/alpha/xm-alpha.h b/gcc/config/alpha/xm-alpha.h index 57ebeb11469..9e38cfc45f3 100644 --- a/gcc/config/alpha/xm-alpha.h +++ b/gcc/config/alpha/xm-alpha.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for DEC Alpha. - Copyright (C) 1990, 1992, 1993, 1994, 1995, 1998 + Copyright (C) 1990, 1992, 1993, 1994, 1995, 1998, 2001 Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu). @@ -32,8 +32,6 @@ Boston, MA 02111-1307, USA. */ #define HOST_BITS_PER_LONG 64 #define HOST_BITS_PER_LONGLONG 64 -/* #define HOST_WORDS_BIG_ENDIAN */ - /* target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ #include "tm.h" diff --git a/gcc/config/alpha/xm-vms.h b/gcc/config/alpha/xm-vms.h index 42e5982e290..16e89c81016 100644 --- a/gcc/config/alpha/xm-vms.h +++ b/gcc/config/alpha/xm-vms.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for openVMS/Alpha. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc. Contributed by Klaus Kaempf (kkaempf@progis.de). This file is part of GNU CC. @@ -64,13 +64,11 @@ Boston, MA 02111-1307, USA. */ /* Define a local equivalent (sort of) for unlink */ #define unlink remove -#define NEED_ATEXIT #define HAVE_VPRINTF #define HAVE_PUTENV #define HAVE_STRERROR #define HAVE_ATOLL -#define NO_SYS_PARAMS_H /* Don't have <sys/params.h> */ #define USE_C_ALLOCA /* Using alloca.c */ #define HAVE_FCNTL_H 1 diff --git a/gcc/config/arm/xm-arm.h b/gcc/config/arm/xm-arm.h index 0899e9f74e5..544fe45e33e 100644 --- a/gcc/config/arm/xm-arm.h +++ b/gcc/config/arm/xm-arm.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Acorn RISC Machine. - Copyright (C) 1991, 1993 Free Software Foundation, Inc. + Copyright (C) 1991, 1993, 2001 Free Software Foundation, Inc. Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) and Martin Simmons (@harleqn.co.uk). More major hacks by Richard Earnshaw (rwe11@cl.cam.ac.uk) @@ -45,11 +45,6 @@ Boston, MA 02111-1307, USA. */ #define USE_C_ALLOCA #endif -/* Define this to be 1 if you know the host compiler supports prototypes, even - if it doesn't define __STDC__, or define it to be 0 if you do not want any - prototypes when compiling GNU CC. */ -#define USE_PROTOTYPES 1 - /* target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ #include "tm.h" diff --git a/gcc/config/clipper/xm-clix.h b/gcc/config/clipper/xm-clix.h index 726660df46a..519ddf589ea 100644 --- a/gcc/config/clipper/xm-clix.h +++ b/gcc/config/clipper/xm-clix.h @@ -1,6 +1,5 @@ /* Config file for Clipper running Clix, system V. 3.2 clone */ - /* #defines that need visibility everywhere. */ #define FALSE 0 #define TRUE 1 @@ -17,9 +16,6 @@ #define HOST_BITS_PER_LONG 32 #define HOST_BITS_PER_LONGLONG 64 -/* This machine uses IEEE floats. */ -/* #define HOST_FLOAT_FORMAT IEEE_FLOAT_FORMAT */ - /* Arguments to use with `exit'. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 33 diff --git a/gcc/config/convex/xm-convex.h b/gcc/config/convex/xm-convex.h index aaaa3b1464c..c3e0fe2c1e7 100644 --- a/gcc/config/convex/xm-convex.h +++ b/gcc/config/convex/xm-convex.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Convex. - Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1997, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -37,11 +37,6 @@ Boston, MA 02111-1307, USA. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 33 -/* Convex ships /tmp as a separate file system - thus it - usually has more free space than /usr/tmp */ - -#define P_tmpdir "/tmp/" - /* Convex uses Vax or IEEE floats. Both formats have Vax semantics. */ diff --git a/gcc/config/d30v/xm-d30v.h b/gcc/config/d30v/xm-d30v.h index 4d3396ec584..aa8c40ef738 100644 --- a/gcc/config/d30v/xm-d30v.h +++ b/gcc/config/d30v/xm-d30v.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Mitsubishi D30V. - Copyright (C) 1997, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 2000, 2001 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of GNU CC. @@ -23,12 +23,6 @@ #define FALSE 0 #define TRUE 1 -/* Define this macro if the host system is System V. */ -/* #define USG */ - -/* Define this macro if the host system is VMS. */ -/* #define VMS */ - /* A C expression for the status code to be returned when the compiler exits after serious errors. */ #define FATAL_EXIT_CODE 33 @@ -41,19 +35,6 @@ order. (GNU CC does not depend on the host byte ordering within a word.) */ #define HOST_WORDS_BIG_ENDIAN -/* Define this macro to be 1 if the host machine stores `DFmode', `XFmode' or - `TFmode' floating point numbers in memory with the word containing the sign - bit at the lowest address; otherwise, define it to be zero. - - This macro need not be defined if the ordering is the same as for multi-word - integers. */ -/* #define HOST_FLOAT_WORDS_BIG_ENDIAN */ - -/* A numeric code distinguishing the floating point format for the host - machine. See `TARGET_FLOAT_FORMAT' in *Note Storage Layout:: for the - alternatives and default. */ -/* #define HOST_FLOAT_FORMAT */ - /* A C expression for the number of bits in `char' on the host machine. */ #define HOST_BITS_PER_CHAR 8 @@ -66,128 +47,14 @@ /* A C expression for the number of bits in `long' on the host machine. */ #define HOST_BITS_PER_LONG 32 -/* Define this macro to indicate that the host compiler only supports `int' bit - fields, rather than other integral types, including `enum', as do most C - compilers. */ -/* #define ONLY_INT_FIELDS */ - -/* A C expression for the size of ordinary obstack chunks. If you don't define - this, a usually-reasonable default is used. */ -/* #define OBSTACK_CHUNK_SIZE */ - -/* The function used to allocate obstack chunks. If you don't define this, - `xmalloc' is used. */ -/* #define OBSTACK_CHUNK_ALLOC */ - -/* The function used to free obstack chunks. If you don't define this, `free' - is used. */ -/* #define OBSTACK_CHUNK_FREE */ - /* Define this macro to indicate that the compiler is running with the `alloca' - implemented in C. This version of `alloca' can be found in the file - `alloca.c'; to use it, you must also alter the `Makefile' variable `ALLOCA'. - (This is done automatically for the systems on which we know it is needed.) - - If you do define this macro, you should probably do it as follows: - - #ifndef __GNUC__ - #define USE_C_ALLOCA - #else - #define alloca __builtin_alloca - #endif - - so that when the compiler is compiled with GNU CC it uses the more efficient - built-in `alloca' function. */ - + implemented in C. */ #ifndef __GNUC__ #define USE_C_ALLOCA #else #define alloca __builtin_alloca #endif -/* Define this macro to indicate that the host compiler does not properly - handle converting a function value to a pointer-to-function when it is used - in an expression. */ -/* #define FUNCTION_CONVERSION_BUG */ - -/* Define this if the library function `vprintf' is available on your system. */ -/* #define HAVE_VPRINTF */ - -/* Define this macro to enable support for multibyte characters in the input to - GNU CC. This requires that the host system support the ANSI C library - functions for converting multibyte characters to wide characters. */ -/* #define MULTIBYTE_CHARS */ - -/* Define this if the library function `putenv' is available on your system. */ -/* #define HAVE_PUTENV */ - -/* Define this if your system is POSIX.1 compliant. */ -/* #define POSIX */ - -/* Define this if your system has the variable `sys_siglist', and there is - already a declaration of it in the system header files. */ -/* #define DONT_DECLARE_SYS_SIGLIST */ - -/* Define this to be 1 if you know that the host compiler supports prototypes, - even if it doesn't define __STDC__, or define it to be 0 if you do not want - any prototypes used in compiling GNU CC. If `USE_PROTOTYPES' is not - defined, it will be determined automatically whether your compiler supports - prototypes by checking if `__STDC__' is defined. */ -/* #define USE_PROTOTYPES */ - -/* Define this if you wish suppression of prototypes generated from the machine - description file, but to use other prototypes within GNU CC. If - `USE_PROTOTYPES' is defined to be 0, or the host compiler does not support - prototypes, this macro has no effect. */ -/* #define NO_MD_PROTOTYPES */ - -/* Define this if you wish to generate prototypes for the `gen_call' or - `gen_call_value' functions generated from the machine description file. If - `USE_PROTOTYPES' is defined to be 0, or the host compiler does not support - prototypes, or `NO_MD_PROTOTYPES' is defined, this macro has no effect. As - soon as all of the machine descriptions are modified to have the appropriate - number of arguments, this macro will be removed. - - Some systems do provide this variable, but with a different name such as - `_sys_siglist'. On these systems, you can define `sys_siglist' as a macro - which expands into the name actually provided. */ -/* #define MD_CALL_PROTOTYPES */ - -/* Define this macro to be a C character constant representing the character - used to separate components in paths. The default value is. the colon - character */ -/* #define PATH_SEPARATOR */ - -/* If your system uses some character other than slash to separate directory - names within a file specification, define this macro to be a C character - constant specifying that character. When GNU CC displays file names, the - character you specify will be used. GNU CC will test for both slash and the - character you specify when parsing filenames. */ -/* #define DIR_SEPARATOR */ - -/* Define this macro to be a C string representing the suffix for object files - on your machine. If you do not define this macro, GNU CC will use `.o' as - the suffix for object files. */ -/* #define OBJECT_SUFFIX */ - -/* Define this macro to be a C string representing the suffix for executable - files on your machine. If you do not define this macro, GNU CC will use the - null string as the suffix for object files. */ -/* #define EXECUTABLE_SUFFIX */ - -/* If defined, `collect2' will scan the individual object files specified on - its command line and create an export list for the linker. Define this - macro for systems like AIX, where the linker discards object files that are - not referenced from `main' and uses export lists. */ -/* #define COLLECT_EXPORT_LIST */ - -/* In addition, configuration files for system V define `bcopy', `bzero' and - `bcmp' as aliases. Some files define `alloca' as a macro when compiled with - GNU CC, in order to take advantage of the benefit of GNU CC's built-in - `alloca'. */ - /* target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ #include "tm.h" - -/* end of xm-generic.h */ diff --git a/gcc/config/fr30/xm-fr30.h b/gcc/config/fr30/xm-fr30.h index a43a3324c37..54b1e5354fc 100644 --- a/gcc/config/fr30/xm-fr30.h +++ b/gcc/config/fr30/xm-fr30.h @@ -1,5 +1,5 @@ /* Definitions of FR30 target. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. Contributed by Cygnus Solutions. This file is part of GNU CC. @@ -31,15 +31,6 @@ Boston, MA 02111-1307, USA. */ without serious errors. */ #define SUCCESS_EXIT_CODE 0 -/* Defined if the host machine stores words of multi-word values in big-endian - order. (GNU CC does not depend on the host byte ordering within a word.) */ -/* #define HOST_WORDS_BIG_ENDIAN 1 */ - -/* In addition, configuration files for system V define `bcopy', `bzero' and - `bcmp' as aliases. Some files define `alloca' as a macro when compiled with - GNU CC, in order to take advantage of the benefit of GNU CC's built-in - `alloca'. */ - /* target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ #include "tm.h" diff --git a/gcc/config/i370/xm-i370.h b/gcc/config/i370/xm-i370.h index b80efb9917d..939dc891752 100644 --- a/gcc/config/i370/xm-i370.h +++ b/gcc/config/i370/xm-i370.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for System/370. - Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1997, 2001 Free Software Foundation, Inc. Contributed by Jan Stein (jan@cd.chalmers.se). Modified for MVS C/370 by Dave Pitts (dpitts@nyx.cs.du.edu) @@ -36,9 +36,6 @@ Boston, MA 02111-1307, USA. */ #define HOST_EBCDIC 1 #define USG -#ifndef MVS -#define MVS -#endif /* Target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ @@ -49,6 +46,3 @@ Boston, MA 02111-1307, USA. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 12 - -#define NO_DBX_FORMAT - diff --git a/gcc/config/i370/xm-linux.h b/gcc/config/i370/xm-linux.h index e0ab373c54d..08ab6983c11 100644 --- a/gcc/config/i370/xm-linux.h +++ b/gcc/config/i370/xm-linux.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for System/370. - Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1997, 2001 Free Software Foundation, Inc. Contributed by Jan Stein (jan@cd.chalmers.se). Modified for OS/390 OpenEdition by Dave Pitts (dpitts@cozx.com) Modified for 390/Linux by Linas Vepstas (linas@linas.org) @@ -26,9 +26,6 @@ Boston, MA 02111-1307, USA. */ #define FALSE 0 #define TRUE 1 -#define USE_STDARGS 1 -#define USE_PROTOTYPES 1 - /* This describes the machine the compiler is hosted on. */ #define HOST_BITS_PER_CHAR 8 @@ -51,8 +48,6 @@ extern char *alloca (); #define ONLY_INT_FIELDS #endif -// #define USG - /* Target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ @@ -62,6 +57,3 @@ extern char *alloca (); #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 12 - -// #define NO_DBX_FORMAT - diff --git a/gcc/config/i370/xm-mvs.h b/gcc/config/i370/xm-mvs.h index f43a8408ce2..b070acda4f7 100644 --- a/gcc/config/i370/xm-mvs.h +++ b/gcc/config/i370/xm-mvs.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for System/370. - Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1997, 2001 Free Software Foundation, Inc. Contributed by Jan Stein (jan@cd.chalmers.se). Modified for OS/390 LanguageEnvironment C by Dave Pitts (dpitts@cozx.com) @@ -36,9 +36,6 @@ Boston, MA 02111-1307, USA. */ #define HOST_EBCDIC 1 #define USG -#ifndef MVS -#define MVS -#endif /* Target machine dependencies. tm.h is a symbolic link to the actual target specific file. */ @@ -49,6 +46,3 @@ Boston, MA 02111-1307, USA. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 12 - -#define NO_DBX_FORMAT - diff --git a/gcc/config/i370/xm-oe.h b/gcc/config/i370/xm-oe.h index a930a2bae61..52dd2831613 100644 --- a/gcc/config/i370/xm-oe.h +++ b/gcc/config/i370/xm-oe.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for System/370. - Copyright (C) 1989, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1993, 1997, 2001 Free Software Foundation, Inc. Contributed by Jan Stein (jan@cd.chalmers.se). Modified for OS/390 OpenEdition by Dave Pitts (dpitts@cozx.com) @@ -25,9 +25,6 @@ Boston, MA 02111-1307, USA. */ #define FALSE 0 #define TRUE 1 -#define USE_STDARGS 1 -#define USE_PROTOTYPES 1 - /* This describes the machine the compiler is hosted on. */ #define HOST_BITS_PER_CHAR 8 @@ -51,6 +48,3 @@ Boston, MA 02111-1307, USA. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 12 - -#define NO_DBX_FORMAT - diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 94fbcecc513..81e995dffcf 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -1,6 +1,6 @@ /* Operating system specific defines to be used when targeting GCC for hosting on Windows32, using a Unix style C library and tools. - Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -534,14 +534,6 @@ do { \ /* External function declarations. */ -#ifndef PARAMS -#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__) -#define PARAMS(ARGS) ARGS -#else -#define PARAMS(ARGS) () -#endif -#endif - extern void i386_pe_record_external_function PARAMS ((char *)); /* extern void i386_pe_declare_function_type PARAMS ((FILE *, char *, int)); */ extern void i386_pe_record_exported_symbol PARAMS ((char *, int)); diff --git a/gcc/config/i386/xm-beos.h b/gcc/config/i386/xm-beos.h index e9aaf45bde0..e386878228a 100644 --- a/gcc/config/i386/xm-beos.h +++ b/gcc/config/i386/xm-beos.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for BeOS host. - Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Fred Fish (fnf@cygnus.com), based on xm-rs6000.h by Richard Kenner (kenner@vlsi1.ultra.nyu.edu). @@ -52,5 +52,3 @@ Boston, MA 02111-1307, USA. */ #define HAVE_PUTENV #endif #define HAVE_RENAME - -#define STDC_HEADERS 1 diff --git a/gcc/config/i386/xm-dos.h b/gcc/config/i386/xm-dos.h index 48d5b11268f..2abdbfce794 100644 --- a/gcc/config/i386/xm-dos.h +++ b/gcc/config/i386/xm-dos.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Intel 80386 running DOS. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -36,5 +36,3 @@ Boston, MA 02111-1307, USA. */ /* Tell GCC about DOS's bit bucket. */ #define HOST_BIT_BUCKET "NUL" - -#define NO_PRECOMPILES 1 diff --git a/gcc/config/i386/xm-mingw32.h b/gcc/config/i386/xm-mingw32.h index 2217bf36077..7d04ddc85e4 100644 --- a/gcc/config/i386/xm-mingw32.h +++ b/gcc/config/i386/xm-mingw32.h @@ -1,6 +1,6 @@ /* Configuration for GNU C-compiler for hosting on Windows32. using GNU tools and the Windows32 API Library. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -27,10 +27,6 @@ Boston, MA 02111-1307, USA. */ #define ONLY_INT_FIELDS 1 #endif -#ifndef USE_PROTOTYPES -#define USE_PROTOTYPES 1 -#endif - #define environ _environ /* Even though we support "/", allow "\" since everybody tests both. */ diff --git a/gcc/config/i860/xm-i860.h b/gcc/config/i860/xm-i860.h index 4e8488f1f10..9b8c0a30fc2 100644 --- a/gcc/config/i860/xm-i860.h +++ b/gcc/config/i860/xm-i860.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Intel i860. - Copyright (C) 1988, 1993 Free Software Foundation, Inc. + Copyright (C) 1988, 1993, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -18,10 +18,6 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef i860 -#define i860 -#endif - /* #defines that need visibility everywhere. */ #define FALSE 0 #define TRUE 1 diff --git a/gcc/config/m68k/xm-3b1.h b/gcc/config/m68k/xm-3b1.h deleted file mode 100644 index 035004f1002..00000000000 --- a/gcc/config/m68k/xm-3b1.h +++ /dev/null @@ -1,4 +0,0 @@ -/* Override part of the obstack macros. */ - -#define __PTR_TO_INT(P) ((int)(P)) -#define __INT_TO_PTR(P) ((char *)(P)) diff --git a/gcc/config/m68k/xm-amix.h b/gcc/config/m68k/xm-amix.h index 6027a9a5633..588b15ecd68 100644 --- a/gcc/config/m68k/xm-amix.h +++ b/gcc/config/m68k/xm-amix.h @@ -1,6 +1,6 @@ /* Definitions of host machine for GNU compiler. Commodore Amiga A3000UX version. - Copyright (C) 1991, 1997 Free Software Foundation, Inc. + Copyright (C) 1991, 1997, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -21,14 +21,6 @@ Boston, MA 02111-1307, USA. */ #include "m68k/xm-m68kv.h" /* Use the System V flavor of m68k host */ -#define rindex strrchr -#define index strchr - -/* Define FULL_PROTOTYPES for protoize.c, to get <unistd.h> included. - We need this file for things like R_OK, not necessarily prototypes. */ - -#define FULL_PROTOTYPES - #if defined (__GNUC__) && __GNUC__ == 1 #define alloca __builtin_alloca #endif diff --git a/gcc/config/m68k/xm-aux.h b/gcc/config/m68k/xm-aux.h index 5ac1f4654d8..994a721e135 100644 --- a/gcc/config/m68k/xm-aux.h +++ b/gcc/config/m68k/xm-aux.h @@ -2,8 +2,4 @@ #define USG #endif -#ifndef AUX -#define AUX -#endif - #include "m68k/xm-m68k.h" diff --git a/gcc/config/m68k/xm-crds.h b/gcc/config/m68k/xm-crds.h deleted file mode 100644 index 2bf1bdbc406..00000000000 --- a/gcc/config/m68k/xm-crds.h +++ /dev/null @@ -1,7 +0,0 @@ -/* Avoid conflict with C library by changing name of this symbol. */ -#define gettime gcc_gettime - -/* Override part of the obstack macros. */ - -#define __PTR_TO_INT(P) ((int)(P)) -#define __INT_TO_PTR(P) ((char *)(P)) diff --git a/gcc/config/m68k/xm-mot3300.h b/gcc/config/m68k/xm-mot3300.h index 4a949052cef..f8eabbd5d97 100644 --- a/gcc/config/m68k/xm-mot3300.h +++ b/gcc/config/m68k/xm-mot3300.h @@ -1,6 +1,7 @@ /* Configuration for GNU C-compiler for Motorola 68000 family. SysV68 Motorola 3300 Delta Series - Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -19,7 +20,6 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ - #define USG 1 /* do not use alloca from -lPW with cc, because function epilogues use %sp */ @@ -30,8 +30,3 @@ extern void *alloca (); extern char *alloca (); #endif #endif - -/* Override part of the obstack macros. */ - -#define __PTR_TO_INT(P) ((int)(P)) -#define __INT_TO_PTR(P) ((char *)(P)) diff --git a/gcc/config/m88k/xm-sysv3.h b/gcc/config/m88k/xm-sysv3.h deleted file mode 100644 index a15fbbaaa54..00000000000 --- a/gcc/config/m88k/xm-sysv3.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Configuration for GNU C-compiler. - Motorola m88100 running the AT&T/Unisoft/Motorola V.3 reference port. - Copyright (C) 1990, 1998, 1999 Free Software Foundation, Inc. - -This file is part of GNU CC. - -GNU CC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - -#define R_OK 4 -#define W_OK 2 -#define X_OK 1 -#define F_OK 0 - -/* for the emacs version of alloca */ -#define STACK_DIRECTION -1 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 74c548ca73d..0c18ddb2a47 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -64,7 +64,6 @@ Boston, MA 02111-1307, USA. */ #define STAB_CODE_TYPE int #endif -extern char *mktemp PARAMS ((char *)); extern tree lookup_name PARAMS ((tree)); /* Enumeration for all of the relational tests, so that we can build @@ -5785,54 +5784,16 @@ mips_output_external_libcall (file, name) /* Compute a string to use as a temporary file name. */ -/* On MSDOS, write temp files in current dir - because there's no place else we can expect to use. */ -#if __MSDOS__ -#ifndef P_tmpdir -#define P_tmpdir "./" -#endif -#endif - static FILE * mips_make_temp_file () { FILE *stream; - const char *base = getenv ("TMPDIR"); - int len; + char *filename = make_temp_file (0); - if (base == 0) - { -#ifdef P_tmpdir - if (access (P_tmpdir, R_OK | W_OK) == 0) - base = P_tmpdir; - else -#endif - if (access ("/usr/tmp", R_OK | W_OK) == 0) - base = "/usr/tmp/"; - else - base = "/tmp/"; - } - - len = strlen (base); - /* temp_filename is global, so we must use malloc, not alloca. */ - temp_filename = (char *) xmalloc (len + sizeof("/ctXXXXXX")); - strcpy (temp_filename, base); - if (len > 0 && temp_filename[len-1] != '/') - temp_filename[len++] = '/'; - - strcpy (temp_filename + len, "ctXXXXXX"); - mktemp (temp_filename); - - stream = fopen (temp_filename, "w+"); + stream = fopen (filename, "w+"); if (!stream) - fatal_io_error ("can't open %s", temp_filename); - -#ifndef __MSDOS__ - /* In MSDOS, we cannot unlink the temporary file until we are finished using - it. Otherwise, we delete it now, so that it will be gone even if the - compiler happens to crash. */ - unlink (temp_filename); -#endif + fatal_io_error ("can't open %s", filename); + free (filename); return stream; } @@ -6087,9 +6048,7 @@ mips_asm_file_end (file) if (fclose (asm_out_text_file) != 0) fatal_io_error ("can't close %s", temp_filename); -#ifdef __MSDOS__ unlink (temp_filename); -#endif } } diff --git a/gcc/config/mips/xm-mips.h b/gcc/config/mips/xm-mips.h index ad49d7f4837..fee5bd384cc 100644 --- a/gcc/config/mips/xm-mips.h +++ b/gcc/config/mips/xm-mips.h @@ -1,5 +1,6 @@ /* Configuration for GNU C-compiler for MIPS Rx000 family - Copyright (C) 1989, 1990, 1991, 1993, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 1990, 1991, 1993, 1997, 2001 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -34,11 +35,6 @@ Boston, MA 02111-1307, USA. */ #define HOST_WORDS_BIG_ENDIAN #endif -/* Enable host-conditionals for MIPS machines. */ -#ifndef MIPS -#define MIPS 1 -#endif - /* A code distinguishing the floating point format of the host machine. There are three defined values: IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT, and UNKNOWN_FLOAT_FORMAT. */ @@ -70,7 +66,5 @@ extern void * alloca (); extern char * alloca (); #endif -/* for the emacs version of alloca */ -#define STACK_DIRECTION -1 #endif #endif /* not MIPS_OVERRIDE_ALLOCA */ diff --git a/gcc/config/rs6000/xm-beos.h b/gcc/config/rs6000/xm-beos.h index 3660a696ed1..cadbbe37885 100644 --- a/gcc/config/rs6000/xm-beos.h +++ b/gcc/config/rs6000/xm-beos.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for BeOS host. - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc. Contributed by Fred Fish (fnf@cygnus.com), based on xm-rs6000.h by Richard Kenner (kenner@vlsi1.ultra.nyu.edu). @@ -74,8 +74,6 @@ extern void *alloca (); #define HAVE_RENAME #endif -#define STDC_HEADERS 1 - /* STANDARD_INCLUDE_DIR is the equivalent of "/usr/include" on UNIX. */ #define STANDARD_INCLUDE_DIR "/boot/develop/headers/posix" diff --git a/gcc/config/vax/xm-vms.h b/gcc/config/vax/xm-vms.h index e2980f29fd6..35115a0884e 100644 --- a/gcc/config/vax/xm-vms.h +++ b/gcc/config/vax/xm-vms.h @@ -1,5 +1,6 @@ /* Configuration for GNU C-compiler for Vax. - Copyright (C) 1987, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1987, 1994, 1995, 1996, 1997, 2001 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -64,26 +65,11 @@ Boston, MA 02111-1307, USA. */ #define VMS #endif -#ifndef __GNUC__ -/* not present, at least in VAX-11 C (VMS) v2.2 */ -#define R_OK 4 -#define W_OK 2 -#define X_OK 1 -#define F_OK 0 -#endif - #define GCC_INCLUDE_DIR "///not used with VMS///" /* nonsense string for now */ /* and define a local equivalent (sort of) for unlink */ #define unlink remove -/* Used by the preprocessor to limit size of disk I/O chunks. - 64K - 1 is the maximum supported by VAXCRTL. Amounts in excess - of 35 blocks will bypass the VMS V6.x VIOC [Virtual I/O Cache], - so we'll pick a limit of 16K (32 blocks). */ -#define MAX_READ_LEN (32 * 512) -#define MAX_WRITE_LEN (32 * 512) - /* Under VMS a directory specification can be enclosed either in square brackets or in angle brackets. Thus we need to check both. This macro is used to help compare filenames in cp-lex.c. @@ -138,7 +124,6 @@ Boston, MA 02111-1307, USA. */ /* Customizations/kludges for building with DEC's VAX C compiler rather than GCC. */ -#define NO_SYS_PARAMS_H /* don't have <sys/params.h> */ #define USE_C_ALLOCA /* using alloca.c */ #define QSORT_WORKAROUND /* do not use VAXCRTL's qsort */ @@ -179,7 +164,6 @@ Boston, MA 02111-1307, USA. */ after having previously sorted something that was a multiple of 4 can produce wrong results and result in data corruption.) We'll use our own substitute (in vax.c) instead. */ -/* #define QSORT_WORKAROUND */ #ifdef QSORT_WORKAROUND #define qsort not_qsort #endif diff --git a/gcc/config/xm-interix.h b/gcc/config/xm-interix.h index 3b975d5b0cd..d3b9b274a42 100644 --- a/gcc/config/xm-interix.h +++ b/gcc/config/xm-interix.h @@ -1,5 +1,5 @@ /* Configuration for GNU compiler for processor running Interix - Copyright (C) 1993, 1995, 1999 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1999, 2001 Free Software Foundation, Inc. Donn Terry, Softway Systems, Inc, from code Contributed by Douglas B. Rupp (drupp@cs.washington.edu) @@ -31,10 +31,6 @@ Boston, MA 02111-1307, USA. */ #endif #endif -#ifndef USE_PROTOTYPES -#define USE_PROTOTYPES 1 -#endif - /* If not compiled with GNU C, use the portable alloca. */ #ifndef __GNUC__ #define USE_C_ALLOCA 1 diff --git a/gcc/config/xm-lynx.h b/gcc/config/xm-lynx.h index 009f8445eab..72ee3423d5b 100644 --- a/gcc/config/xm-lynx.h +++ b/gcc/config/xm-lynx.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Lynx. - Copyright (C) 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -29,23 +29,3 @@ Boston, MA 02111-1307, USA. */ /* Arguments to use with `exit'. */ #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 33 - -/* Lynx has no vfork system call. */ -#define vfork fork - -/* Lynx has a non-standard mktemp function. */ -/* ??? This is simpler than creating YATM: Yet Another Target Macro. */ -#define mktemp lynx_mktemp - -#define lynx_mktemp(template) \ -do { \ - int pid = getpid (); \ - char *t = template; \ - char *p; \ - p = t + strlen (t); \ - while (*--p == 'X') \ - { \ - *p = (pid % 10) + '0'; \ - pid /= 10; \ - } \ -} while (0) diff --git a/gcc/config/xm-svr3.h b/gcc/config/xm-svr3.h index 6f252505252..e6bf52bae6d 100644 --- a/gcc/config/xm-svr3.h +++ b/gcc/config/xm-svr3.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for hosts running System V Release 3 - Copyright (C) 1991, 1993, 1996 Free Software Foundation, Inc. + Copyright (C) 1991, 1993, 1996, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -19,7 +19,3 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define USG - -#ifndef SVR3 -#define SVR3 -#endif diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 77eb2ed8c50..7ce616e01b9 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +2001-02-24 Zack Weinberg <zackw@stanford.edu> + + * com.c: Don't define STDC_HEADERS, autoconf handles it. + Fri Feb 23 15:28:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * com.c (set_block): Set NAMES and BLOCKS from BLOCK. diff --git a/gcc/f/com.c b/gcc/f/com.c index d7ff94a4ca7..b4a188609c1 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -100,7 +100,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA HAVE_STDLIB_H HAVE_SYS_TIME_H HAVE_UNISTD_H - STDC_HEADERS TIME_WITH_SYS_TIME In the mean time, we'll get by with approximations based on existing GCC configuration symbols. */ @@ -112,9 +111,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA # ifndef HAVE_UNISTD_H # define HAVE_UNISTD_H 1 # endif -# ifndef STDC_HEADERS -# define STDC_HEADERS 1 -# endif #endif /* defined (POSIX) */ #if defined (POSIX) || (defined (USG) && !defined (VMS)) diff --git a/gcc/gcc.texi b/gcc/gcc.texi index 377f5ea6f50..08dd6e2b655 100644 --- a/gcc/gcc.texi +++ b/gcc/gcc.texi @@ -4194,15 +4194,6 @@ characters. @item POSIX Define this if your system is POSIX.1 compliant. -@findex USE_PROTOTYPES -@item USE_PROTOTYPES -Define this to be 1 if you know that the host compiler supports -prototypes, even if it doesn't define __STDC__, or define -it to be 0 if you do not want any prototypes used in compiling -GCC. If @samp{USE_PROTOTYPES} is not defined, it will be -determined automatically whether your compiler supports -prototypes by checking if @samp{__STDC__} is defined. - @findex PATH_SEPARATOR @item PATH_SEPARATOR Define this macro to be a C character constant representing the |