* config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
authorFred Fish <fnf@specifix.com>
Sat, 8 May 1993 19:42:07 +0000 (19:42 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 8 May 1993 19:42:07 +0000 (19:42 +0000)
include declarations for malloc/realloc/free.  Both malloc and
realloc return 'void *' for non-ANSI compilations.

gdb/ChangeLog
gdb/config/pa/xm-hppah.h

index 35d8dac5f7dc22d37929a2d4c1ff365360479203..e23148247184bf6c48ad1b7fa8760b911cda3ac6 100644 (file)
@@ -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
index 531b8781dcc513170976b21c6a1ce2930e7bd38e..9b647245930ca9af8ce264d51b9c1b43ce7de45c 100644 (file)
@@ -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 *));
This page took 0.029727 seconds and 4 git commands to generate.