From 64c5ac4f6d386086532df74bd116a782f04c49c5 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Sat, 8 May 1993 19:42:07 +0000 Subject: [PATCH] * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and include declarations for malloc/realloc/free. Both malloc and realloc return 'void *' for non-ANSI compilations. --- gdb/ChangeLog | 6 ++++++ gdb/config/pa/xm-hppah.h | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 35d8dac5f7d..e2314824718 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com) + + * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and + include declarations for malloc/realloc/free. Both malloc and + realloc return 'void *' for non-ANSI compilations. + Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de) * coffread.c (read_coff_symtab): Don't fclose stream as it is no diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h index 531b8781dcc..9b647245930 100644 --- a/gdb/config/pa/xm-hppah.h +++ b/gdb/config/pa/xm-hppah.h @@ -57,3 +57,16 @@ memcpy PARAMS ((void *, const void *, size_t)); /* 4.11.2.1 */ extern void * memset PARAMS ((void *, int, size_t)); /* 4.11.6.1 */ +/* HP defines malloc and realloc as returning void *, even for non-ANSI + compilations (such as with the native compiler). */ + +#define MALLOC_INCOMPATIBLE + +extern void * +malloc PARAMS ((size_t)); + +extern void * +realloc PARAMS ((void *, size_t)); + +extern void +free PARAMS ((void *)); -- 2.30.2