aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1993-05-08 19:42:07 +0000
committerFred Fish <fnf@specifix.com>1993-05-08 19:42:07 +0000
commit64c5ac4f6d386086532df74bd116a782f04c49c5 (patch)
tree6c179163e1fb9b77901ed4f528d97ada6d40882a /gdb
parent1adf2ba9db338598e9fcd6ad16082c0615ac7831 (diff)
downloadgdb-64c5ac4f6d386086532df74bd116a782f04c49c5.zip
gdb-64c5ac4f6d386086532df74bd116a782f04c49c5.tar.gz
gdb-64c5ac4f6d386086532df74bd116a782f04c49c5.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/config/pa/xm-hppah.h13
2 files changed, 19 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 35d8dac..e231482 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 531b878..9b64724 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 *));