diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-12-18 23:58:21 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-12-18 23:58:21 +0000 |
commit | 9e9b9afe4c70bfb0126b669f26423785eea8beca (patch) | |
tree | 7e1a8332652f11d7ac0e018602c70ca12e95948b /gcc/config | |
parent | 20d380b15db740b9a998f5c64b52333f3f8d55c2 (diff) | |
download | gcc-9e9b9afe4c70bfb0126b669f26423785eea8beca.zip gcc-9e9b9afe4c70bfb0126b669f26423785eea8beca.tar.gz gcc-9e9b9afe4c70bfb0126b669f26423785eea8beca.tar.bz2 |
config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
* config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
* tm.texi (EXIT_BODY): Update documentation.
* config/freebsd.h, config/netware.h, config/arm/coff.h,
config/arm/conix-elf.h, config/arm/unknown-elf.h,
config/d30v/d30v.h, config/mcore/mcore.h, config/pj/pj.h,
sparc/sp86x-aout.h: Remove definitions of HAVE_ATEXIT (some
commented out) and associated comments.
f:
* com.c [VMS]: Remove definition of BSTRING.
From-SVN: r38370
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/coff.h | 8 | ||||
-rw-r--r-- | gcc/config/arm/conix-elf.h | 8 | ||||
-rw-r--r-- | gcc/config/arm/unknown-elf.h | 8 | ||||
-rw-r--r-- | gcc/config/d30v/d30v.h | 7 | ||||
-rw-r--r-- | gcc/config/freebsd.h | 3 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.h | 4 | ||||
-rw-r--r-- | gcc/config/netware.h | 4 | ||||
-rw-r--r-- | gcc/config/pj/pj.h | 3 | ||||
-rw-r--r-- | gcc/config/sparc/sp86x-aout.h | 2 |
9 files changed, 1 insertions, 46 deletions
diff --git a/gcc/config/arm/coff.h b/gcc/config/arm/coff.h index 6884029..94999d4 100644 --- a/gcc/config/arm/coff.h +++ b/gcc/config/arm/coff.h @@ -199,14 +199,6 @@ dtors_section () \ #undef DO_GLOBAL_CTORS_BODY #undef DO_GLOBAL_DTORS_BODY -/* If you don't define HAVE_ATEXIT, and the object file format/OS/whatever - does not support constructors/destructors, then gcc implements destructors - by defining its own exit function, which calls the destructors. This gcc - exit function overrides the C library's exit function, and this can cause - all kinds of havoc if the C library has a non-trivial exit function. You - really don't want to use the exit function in libgcc2.c. */ -#define HAVE_ATEXIT - /* The ARM development system defines __main. */ #define NAME__MAIN "__gccmain" #define SYMBOL__MAIN __gccmain diff --git a/gcc/config/arm/conix-elf.h b/gcc/config/arm/conix-elf.h index c1120ea..2d447a5 100644 --- a/gcc/config/arm/conix-elf.h +++ b/gcc/config/arm/conix-elf.h @@ -25,14 +25,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_VERSION fputs (" (ARM/ELF ConiX)", stderr); #endif -/* If you don't define HAVE_ATEXIT, and the object file format/OS/whatever - does not support constructors/destructors, then gcc implements destructors - by defining its own exit function, which calls the destructors. This gcc - exit function overrides the C library's exit function, and this can cause - all kinds of havoc if the C library has a non-trivial exit function. You - really don't want to use the exit function in libgcc2.c. */ -#define HAVE_ATEXIT - /* Default to using APCS-32 and software floating point. */ #ifndef TARGET_DEFAULT #define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32) diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h index 9b883d0..315baff 100644 --- a/gcc/config/arm/unknown-elf.h +++ b/gcc/config/arm/unknown-elf.h @@ -24,14 +24,6 @@ Boston, MA 02111-1307, USA. */ #define TARGET_VERSION fputs (" (ARM/ELF non-Linux)", stderr); #endif -/* If you don't define HAVE_ATEXIT, and the object file format/OS/whatever - does not support constructors/destructors, then gcc implements destructors - by defining its own exit function, which calls the destructors. This gcc - exit function overrides the C library's exit function, and this can cause - all kinds of havoc if the C library has a non-trivial exit function. You - really don't want to use the exit function in libgcc2.c. */ -#define HAVE_ATEXIT - /* Default to using APCS-32 and software floating point. */ #ifndef TARGET_DEFAULT #define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME) diff --git a/gcc/config/d30v/d30v.h b/gcc/config/d30v/d30v.h index d05d294..e82b3fe 100644 --- a/gcc/config/d30v/d30v.h +++ b/gcc/config/d30v/d30v.h @@ -6041,13 +6041,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE) `main'. */ /* #define DEFAULT_MAIN_RETURN */ -/* Define this if the target system supports the function `atexit' from the - ANSI C standard. If this is not defined, and `INIT_SECTION_ASM_OP' is not - defined, a default `exit' function will be provided to support C++. - - Defined by svr4.h */ -/* #define HAVE_ATEXIT */ - /* Define this if your `exit' function needs to do something besides calling an external function `_cleanup' before terminating with `_exit'. The `EXIT_BODY' macro is only needed if netiher `HAVE_ATEXIT' nor diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h index 7e8f035..f7cea4b 100644 --- a/gcc/config/freebsd.h +++ b/gcc/config/freebsd.h @@ -136,6 +136,3 @@ do { \ /* Handle #pragma weak and #pragma pack. */ #define HANDLE_SYSV_PRAGMA - -/* Tell libgcc2.c that FreeBSD targets support atexit(3). */ -#define HAVE_ATEXIT diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index f39542f..8766703 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -1070,10 +1070,6 @@ extern enum reg_class reg_class_from_letter[]; #define WORD_REGISTER_OPERATIONS -/* Provided in ANSI C MCore libraries. */ -#undef HAVE_ATEXIT -#define HAVE_ATEXIT 1 - /* Implicit library calls should use memcpy, not bcopy, etc. */ #define TARGET_MEM_FUNCTIONS diff --git a/gcc/config/netware.h b/gcc/config/netware.h index 58386a1..a28a9d0 100644 --- a/gcc/config/netware.h +++ b/gcc/config/netware.h @@ -1,6 +1,6 @@ /* netware.h -- operating system specific defines to be used when targeting GCC for some generic NetWare 4 system. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 2000 Free Software Foundation, Inc. Written by David V. Henkel-Wallace (gumby@cygnus.com) @@ -63,8 +63,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and SELECT_RTX_SECTION. We do both here just to be on the safe side. */ -#define HAVE_ATEXIT - #undef HAS_INIT_SECTION #undef INIT_SECTION_ASM_OP diff --git a/gcc/config/pj/pj.h b/gcc/config/pj/pj.h index 039997d..8624fa2 100644 --- a/gcc/config/pj/pj.h +++ b/gcc/config/pj/pj.h @@ -1293,9 +1293,6 @@ do { char dstr[30]; \ PROMOTE_FUNCTION_RETURN does the same for function returns. */ #define PROMOTE_FUNCTION_ARGS -/* For the sake of libgcc2.c, indicate target supports atexit. */ -#define HAVE_ATEXIT - /* We can debug without a frame pointer. */ #define CAN_DEBUG_WITHOUT_FP diff --git a/gcc/config/sparc/sp86x-aout.h b/gcc/config/sparc/sp86x-aout.h index 90eeae1..78a26cb 100644 --- a/gcc/config/sparc/sp86x-aout.h +++ b/gcc/config/sparc/sp86x-aout.h @@ -20,8 +20,6 @@ Boston, MA 02111-1307, USA. */ #include "sparc/sparc.h" -#define HAVE_ATEXIT - #undef CPP_PREDEFINES #define CPP_PREDEFINES "-D__sparc__ -D__sparclite86x__ -Acpu=sparc -Amachine=sparc" |