Commit 9e9b9afe by Joseph Myers Committed by Joseph Myers

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
parent 20d380b1
2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> 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. * c-common.c (STD_C9L, ADJ_STD): Define.
(printf_length_specs, scanf_length_specs): Mark "ll" as standard (printf_length_specs, scanf_length_specs): Mark "ll" as standard
STD_C9L. STD_C9L.
......
...@@ -258,7 +258,7 @@ esac ...@@ -258,7 +258,7 @@ esac
# Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems. # Common parts for GNU/Linux, GNU/Hurd and OpenBSD systems.
case $machine in case $machine in
*-*-linux*) *-*-linux*)
xm_defines="HAVE_ATEXIT POSIX BSTRING" xm_defines="POSIX"
;; ;;
*-*-gnu*) *-*-gnu*)
# On the Hurd, the setup is just about the same on # On the Hurd, the setup is just about the same on
......
...@@ -199,14 +199,6 @@ dtors_section () \ ...@@ -199,14 +199,6 @@ dtors_section () \
#undef DO_GLOBAL_CTORS_BODY #undef DO_GLOBAL_CTORS_BODY
#undef DO_GLOBAL_DTORS_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. */ /* The ARM development system defines __main. */
#define NAME__MAIN "__gccmain" #define NAME__MAIN "__gccmain"
#define SYMBOL__MAIN __gccmain #define SYMBOL__MAIN __gccmain
...@@ -25,14 +25,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -25,14 +25,6 @@ Boston, MA 02111-1307, USA. */
#define TARGET_VERSION fputs (" (ARM/ELF ConiX)", stderr); #define TARGET_VERSION fputs (" (ARM/ELF ConiX)", stderr);
#endif #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. */ /* Default to using APCS-32 and software floating point. */
#ifndef TARGET_DEFAULT #ifndef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32) #define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32)
......
...@@ -24,14 +24,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,14 +24,6 @@ Boston, MA 02111-1307, USA. */
#define TARGET_VERSION fputs (" (ARM/ELF non-Linux)", stderr); #define TARGET_VERSION fputs (" (ARM/ELF non-Linux)", stderr);
#endif #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. */ /* Default to using APCS-32 and software floating point. */
#ifndef TARGET_DEFAULT #ifndef TARGET_DEFAULT
#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME) #define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME)
......
...@@ -6041,13 +6041,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE) ...@@ -6041,13 +6041,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE)
`main'. */ `main'. */
/* #define DEFAULT_MAIN_RETURN */ /* #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 /* Define this if your `exit' function needs to do something besides calling an
external function `_cleanup' before terminating with `_exit'. The external function `_cleanup' before terminating with `_exit'. The
`EXIT_BODY' macro is only needed if netiher `HAVE_ATEXIT' nor `EXIT_BODY' macro is only needed if netiher `HAVE_ATEXIT' nor
......
...@@ -136,6 +136,3 @@ do { \ ...@@ -136,6 +136,3 @@ do { \
/* Handle #pragma weak and #pragma pack. */ /* Handle #pragma weak and #pragma pack. */
#define HANDLE_SYSV_PRAGMA #define HANDLE_SYSV_PRAGMA
/* Tell libgcc2.c that FreeBSD targets support atexit(3). */
#define HAVE_ATEXIT
...@@ -1070,10 +1070,6 @@ extern enum reg_class reg_class_from_letter[]; ...@@ -1070,10 +1070,6 @@ extern enum reg_class reg_class_from_letter[];
#define WORD_REGISTER_OPERATIONS #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. */ /* Implicit library calls should use memcpy, not bcopy, etc. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
......
/* netware.h -- operating system specific defines to be used when /* netware.h -- operating system specific defines to be used when
targeting GCC for some generic NetWare 4 system. 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) Written by David V. Henkel-Wallace (gumby@cygnus.com)
...@@ -63,8 +63,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -63,8 +63,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
SELECT_RTX_SECTION. We do both here just to be on the safe side. */ SELECT_RTX_SECTION. We do both here just to be on the safe side. */
#define HAVE_ATEXIT
#undef HAS_INIT_SECTION #undef HAS_INIT_SECTION
#undef INIT_SECTION_ASM_OP #undef INIT_SECTION_ASM_OP
......
...@@ -1293,9 +1293,6 @@ do { char dstr[30]; \ ...@@ -1293,9 +1293,6 @@ do { char dstr[30]; \
PROMOTE_FUNCTION_RETURN does the same for function returns. */ PROMOTE_FUNCTION_RETURN does the same for function returns. */
#define PROMOTE_FUNCTION_ARGS #define PROMOTE_FUNCTION_ARGS
/* For the sake of libgcc2.c, indicate target supports atexit. */
#define HAVE_ATEXIT
/* We can debug without a frame pointer. */ /* We can debug without a frame pointer. */
#define CAN_DEBUG_WITHOUT_FP #define CAN_DEBUG_WITHOUT_FP
......
...@@ -20,8 +20,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -20,8 +20,6 @@ Boston, MA 02111-1307, USA. */
#include "sparc/sparc.h" #include "sparc/sparc.h"
#define HAVE_ATEXIT
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D__sparc__ -D__sparclite86x__ -Acpu=sparc -Amachine=sparc" #define CPP_PREDEFINES "-D__sparc__ -D__sparclite86x__ -Acpu=sparc -Amachine=sparc"
......
2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk> 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}. * g77.texi: Update GPL copy not to refer to years 19@var{yy}.
2000-12-18 Toon Moene <toon@moene.indiv.nluug.nl> 2000-12-18 Toon Moene <toon@moene.indiv.nluug.nl>
......
...@@ -180,9 +180,6 @@ static void hack_vms_include_specification (); ...@@ -180,9 +180,6 @@ static void hack_vms_include_specification ();
typedef struct { unsigned :16, :16, :16; } vms_ino_t; typedef struct { unsigned :16, :16, :16; } vms_ino_t;
#define ino_t vms_ino_t #define ino_t vms_ino_t
#define INCLUDE_LEN_FUDGE 10 /* leave room for VMS syntax conversion */ #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 */ #endif /* VMS */
#ifndef O_RDONLY #ifndef O_RDONLY
......
...@@ -8080,8 +8080,8 @@ the @code{atexit} function. ...@@ -8080,8 +8080,8 @@ the @code{atexit} function.
Define this if your @code{exit} function needs to do something Define this if your @code{exit} function needs to do something
besides calling an external function @code{_cleanup} before besides calling an external function @code{_cleanup} before
terminating with @code{_exit}. The @code{EXIT_BODY} macro is terminating with @code{_exit}. The @code{EXIT_BODY} macro is
only needed if neither @code{HAVE_ATEXIT} nor only needed if @code{NEED_ATEXIT} is defined and @code{ON_EXIT} is not
@code{INIT_SECTION_ASM_OP} are defined. defined.
@findex INSN_SETS_ARE_DELAYED @findex INSN_SETS_ARE_DELAYED
@item INSN_SETS_ARE_DELAYED (@var{insn}) @item INSN_SETS_ARE_DELAYED (@var{insn})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment