diff options
Diffstat (limited to 'gcc/config')
30 files changed, 35 insertions, 387 deletions
diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h index c7e9f74..870acd2 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 57ebeb1..9e38cfc 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 42e5982e..16e89c8 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 0899e9f..544fe45 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 726660d..519ddf5 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 aaaa3b1..c3e0fe2c 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 4d3396e..aa8c40e 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 a43a332..54b1e53 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 b80efb9..939dc89 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 e0ab373..08ab698 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 f43a840..b070acd 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 a930a2b..52dd283 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 94fbcec..81e995d 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 e9aaf45..e386878 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 48d5b11..2abdbfc 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 2217bf3..7d04ddc 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 4e8488f..9b8c0a3 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 035004f..0000000 --- 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 6027a9a..588b15e 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 5ac1f46..994a721 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 2bf1bdb..0000000 --- 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 4a94905..f8eabbd 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 a15fbba..0000000 --- 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 74c548c..0c18ddb 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 ad49d7f..fee5bd3 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 3660a69..cadbbe3 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 e2980f2..35115a0 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 3b975d5..d3b9b27 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 009f844..72ee342 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 6f25250..e6bf52b 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 |