aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-09-08 19:42:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-09-08 19:42:01 +0000
commitce3700e3ba57f07a44a2edc9d8b146a7682bb54e (patch)
treec492c082ca18b5ddb799202154dfb028acb16bb7 /gcc
parentc45a8466e615418926ac97e765e7cee80c020698 (diff)
downloadgcc-ce3700e3ba57f07a44a2edc9d8b146a7682bb54e.zip
gcc-ce3700e3ba57f07a44a2edc9d8b146a7682bb54e.tar.gz
gcc-ce3700e3ba57f07a44a2edc9d8b146a7682bb54e.tar.bz2
system.h (sbrk, [...]): Backup prototypes changed from extern char *, to extern PTR.
* system.h (sbrk, malloc, calloc, realloc): Backup prototypes changed from extern char *, to extern PTR. Also fix typo in NEED_DECLARATION_REALLOC test. * mips-tdump.c (malloc, calloc, realloc): Don't prototype. From-SVN: r29210
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/mips-tdump.c12
-rw-r--r--gcc/system.h10
3 files changed, 13 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 08c2e15..1d2296a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
+ changed from extern char *, to extern PTR. Also fix typo in
+ NEED_DECLARATION_REALLOC test.
+
+ * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
+
Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
diff --git a/gcc/mips-tdump.c b/gcc/mips-tdump.c
index fd70e51..d82d0ac 100644
--- a/gcc/mips-tdump.c
+++ b/gcc/mips-tdump.c
@@ -262,18 +262,6 @@ const char *glevel_to_string __proto((glevel_t));
const char *lang_to_string __proto((lang_t));
const char *type_to_string __proto((AUXU *, int, FDR *));
-#ifndef __alpha
-# ifdef NEED_DECLARATION_MALLOC
-extern PTR_T malloc __proto((size_t));
-# endif
-# ifdef NEED_DECLARATION_CALLOC
-extern PTR_T calloc __proto((size_t, size_t));
-# endif
-# ifdef NEED_DECLARATION_REALLOC
-extern PTR_T realloc __proto((PTR_T, size_t));
-# endif
-#endif
-
extern char *optarg;
extern int optind;
extern int opterr;
diff --git a/gcc/system.h b/gcc/system.h
index 0f960af..960e174 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -338,7 +338,7 @@ extern char *getwd ();
#endif
#ifdef NEED_DECLARATION_SBRK
-extern char *sbrk ();
+extern PTR sbrk ();
#endif
#ifdef NEED_DECLARATION_STRSTR
@@ -350,15 +350,15 @@ extern char *strstr ();
#endif
#ifdef NEED_DECLARATION_MALLOC
-extern char *malloc ();
+extern PTR malloc ();
#endif
#ifdef NEED_DECLARATION_CALLOC
-extern char *calloc ();
+extern PTR calloc ();
#endif
-#ifdef NEED_DECLARATION_REMALLOC
-extern char *realloc ();
+#ifdef NEED_DECLARATION_REALLOC
+extern PTR realloc ();
#endif
#ifdef HAVE_STRERROR