]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
authorJoseph Myers <jsm28@cam.ac.uk>
Mon, 18 Dec 2000 23:58:21 +0000 (23:58 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 18 Dec 2000 23:58:21 +0000 (23:58 +0000)
* 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

14 files changed:
gcc/ChangeLog
gcc/config.gcc
gcc/config/arm/coff.h
gcc/config/arm/conix-elf.h
gcc/config/arm/unknown-elf.h
gcc/config/d30v/d30v.h
gcc/config/freebsd.h
gcc/config/mcore/mcore.h
gcc/config/netware.h
gcc/config/pj/pj.h
gcc/config/sparc/sp86x-aout.h
gcc/f/ChangeLog
gcc/f/com.c
gcc/tm.texi

index c593d1e598b20d24804980f8dfe77b08f05b1ce9..eb0c0ce36817e41b578c5249fa2e6ad8f51e9ded 100644 (file)
@@ -1,3 +1,13 @@
+2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * 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.
+
 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * c-common.c (STD_C9L, ADJ_STD): Define.
index 71a1468d77dca0a11011797e9679af340a7518f5..13647bf5e05e4fae8763f4db89604e7abd94bd8b 100644 (file)
@@ -258,7 +258,7 @@ esac
 # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
 case $machine in
 *-*-linux*)
-       xm_defines="HAVE_ATEXIT POSIX BSTRING"
+       xm_defines="POSIX"
        ;;
 *-*-gnu*)
        # On the Hurd, the setup is just about the same on
index 6884029b5c45d44d4e1d66169dc08e17b5b63dec..94999d4b4aa972f1ff4cf414fd83450c0275421c 100644 (file)
@@ -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
index c1120ea9200a9bdc8428fdf96d73c1a6776d48c6..2d447a5f602b5ededb792c25638bcbd9c8f67ff4 100644 (file)
@@ -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)
index 9b883d0e061b92d77ed031e2d6efc823caba689c..315baff69204cebf9ca07e4c59116e0030506958 100644 (file)
@@ -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)
index d05d2948c97907669cf9fd29c1e1e7b0737b73f0..e82b3fe53f2037b72681c98e656884f4d379ab6b 100644 (file)
@@ -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
index 7e8f035d1f8e65780f37123b374408030a129fd2..f7cea4b68ae4d35a6d4b34255d1cf0e059753cdd 100644 (file)
@@ -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
index f39542f1d0366291e4d5443dc802f627b6232f68..87667031cf22d9067784a8a0e65c86ec427f6e79 100644 (file)
@@ -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
 
index 58386a1fd14f6f714d4fc283be0d9061a9b80bde..a28a9d09542f73efa79a13b3765a41a830594f68 100644 (file)
@@ -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
 
index 039997d4ac3569c70a58626160eeb47c4d700534..8624fa2955faf4bb67b9e1f4558488a10e7cf6e3 100644 (file)
@@ -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
-
 \f
 /* We can debug without a frame pointer.  */
 #define CAN_DEBUG_WITHOUT_FP 
index 90eeae1e80fbfc2e6c2d38aaf3ecc3ec25970b08..78a26cb609cf4dff481c0c8afd2c10d70ad74a63 100644 (file)
@@ -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"
 
index 2516e4cb5eef25818342fd4313742629c0699744..06033f9774de95f5d39e66112cc46787a0867995 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * com.c [VMS]: Remove definition of BSTRING.
+
 2000-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * g77.texi: Update GPL copy not to refer to years 19@var{yy}.
index 82d99d837ed8f423cc40a3d7f58a075837519c0f..40d511664e4af9bd8fb32d1d0488d32cbb60f4cd 100644 (file)
@@ -180,9 +180,6 @@ static void hack_vms_include_specification ();
 typedef struct { unsigned :16, :16, :16; } vms_ino_t;
 #define ino_t vms_ino_t
 #define INCLUDE_LEN_FUDGE 10   /* leave room for VMS syntax conversion */
-#ifdef __GNUC__
-#define BSTRING                        /* VMS/GCC supplies the bstring routines */
-#endif /* __GNUC__ */
 #endif /* VMS */
 
 #ifndef O_RDONLY
index e60330dd2a299410ceebfd25418151f4f001a022..a7fb12458f1dc880d68b6e7dbee6d58c6b050baf 100644 (file)
@@ -8080,8 +8080,8 @@ the @code{atexit} function.
 Define this if your @code{exit} function needs to do something
 besides calling an external function @code{_cleanup} before
 terminating with @code{_exit}.  The @code{EXIT_BODY} macro is
-only needed if neither @code{HAVE_ATEXIT} nor
-@code{INIT_SECTION_ASM_OP} are defined.
+only needed if @code{NEED_ATEXIT} is defined and @code{ON_EXIT} is not
+defined.
 
 @findex INSN_SETS_ARE_DELAYED
 @item INSN_SETS_ARE_DELAYED (@var{insn})