This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Delete macro MALLOC_INCOMPATIBLE
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: [rfc] Delete macro MALLOC_INCOMPATIBLE
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 19 Mar 2001 21:53:49 -0500
- References: <3AB69BC0.E3617E2E@cygnus.com>
2001-03-19 Andrew Cagney <ac131313@redhat.com>
* defs.h: Remove #ifndef MALLOC_INCOMPATIBLE.
* config/sparc/xm-sun4os4.h (MALLOC_INCOMPATIBLE): Delete
macro. Do not include <malloc.h>.
* config/i386/xm-windows.h (MALLOC_INCOMPATIBLE): Ditto.
* config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Delete macro.
(malloc, free, realloc): Delete declarations.
Index: doc/ChangeLog
2001-03-19 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (MALLOC_INCOMPATIBLE): Delete documentation.
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.43
diff -p -r1.43 defs.h
*** defs.h 2001/03/14 16:42:29 1.43
--- defs.h 2001/03/19 23:46:36
*************** extern int fclose (FILE *);
*** 945,952 ****
extern double atof (const char *); /* X3.159-1989 4.10.1.1 */
#endif
- #ifndef MALLOC_INCOMPATIBLE
-
#ifdef NEED_DECLARATION_MALLOC
extern PTR malloc ();
#endif
--- 945,950 ----
*************** extern PTR realloc ();
*** 958,965 ****
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
-
- #endif /* MALLOC_INCOMPATIBLE */
/* Various possibilities for alloca. */
#ifndef alloca
--- 956,961 ----
Index: config/i386/xm-windows.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-windows.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 xm-windows.h
*** xm-windows.h 1999/07/07 20:13:48 1.1.1.2
--- xm-windows.h 2001/03/19 23:46:37
***************
*** 28,36 ****
#undef HAVE_SBRK
#define CANT_FORK
- #define MALLOC_INCOMPATIBLE
-
- #include <malloc.h>
-
#define SIGQUIT 3
#define SIGTRAP 5
--- 28,32 ----
Index: config/sparc/xm-sun4os4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/xm-sun4os4.h,v
retrieving revision 1.2
diff -p -r1.2 xm-sun4os4.h
*** xm-sun4os4.h 2001/03/06 08:21:37 1.2
--- xm-sun4os4.h 2001/03/19 23:46:37
***************
*** 23,35 ****
#define FPU
- /* /usr/include/malloc.h is included by vx-share/xdr_ld, and might
- declare these using char * not void *. The following should work with
- acc, gcc, or /bin/cc. */
-
- #define MALLOC_INCOMPATIBLE
- #include <malloc.h>
-
/* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */
#define PTRACE_ARG3_TYPE char*
--- 23,28 ----
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.20
diff -p -r1.20 gdbint.texinfo
*** gdbint.texinfo 2001/03/06 08:21:42 1.20
--- gdbint.texinfo 2001/03/19 23:46:53
*************** This macro is used as the argument to @c
*** 1151,1160 ****
@code{bfd_seek}). FIXME, should be replaced by SEEK_SET instead,
which is the POSIX equivalent.
- @item MALLOC_INCOMPATIBLE
- Define this if the system's prototype for @code{malloc} differs from the
- @sc{ansi} definition.
-
@item MMAP_BASE_ADDRESS
When using HAVE_MMAP, the first mapping should go at this address.
--- 1151,1156 ----