aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-12-18 23:58:21 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2000-12-18 23:58:21 +0000
commit9e9b9afe4c70bfb0126b669f26423785eea8beca (patch)
tree7e1a8332652f11d7ac0e018602c70ca12e95948b
parent20d380b15db740b9a998f5c64b52333f3f8d55c2 (diff)
downloadgcc-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
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config.gcc2
-rw-r--r--gcc/config/arm/coff.h8
-rw-r--r--gcc/config/arm/conix-elf.h8
-rw-r--r--gcc/config/arm/unknown-elf.h8
-rw-r--r--gcc/config/d30v/d30v.h7
-rw-r--r--gcc/config/freebsd.h3
-rw-r--r--gcc/config/mcore/mcore.h4
-rw-r--r--gcc/config/netware.h4
-rw-r--r--gcc/config/pj/pj.h3
-rw-r--r--gcc/config/sparc/sp86x-aout.h2
-rw-r--r--gcc/f/ChangeLog4
-rw-r--r--gcc/f/com.c3
-rw-r--r--gcc/tm.texi4
14 files changed, 18 insertions, 52 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c593d1e..eb0c0ce 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,15 @@
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.
(printf_length_specs, scanf_length_specs): Mark "ll" as standard
STD_C9L.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 71a1468..13647bf 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -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
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"
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 2516e4c..06033f9 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,5 +1,9 @@
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}.
2000-12-18 Toon Moene <toon@moene.indiv.nluug.nl>
diff --git a/gcc/f/com.c b/gcc/f/com.c
index 82d99d8..40d5116 100644
--- a/gcc/f/com.c
+++ b/gcc/f/com.c
@@ -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
diff --git a/gcc/tm.texi b/gcc/tm.texi
index e60330dd..a7fb124 100644
--- a/gcc/tm.texi
+++ b/gcc/tm.texi
@@ -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})