+Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
+
+ * defs.h: Remove define of PRIVATE_XMALLOC.
+
+start-sanitize-v850
+start-sanitize-v850
+Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com)
+
+ * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
+
+end-sanitize-v850
Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
* top.c (execute_control_command): Free values from while_control
#include <varargs.h>
#endif
-#define PRIVATE_XMALLOC 1 /* Suppress libiberty decls for xmalloc/xrealloc */
#include "libiberty.h"
/* libiberty.h can't declare this one, but evidently we can. */
#include "fopen-same.h"
#endif
+/* Microsoft C can't deal with const pointers */
+
+#ifdef _MSC_VER
+#define CONST_PTR
+#else
+#define CONST_PTR const
+#endif
+
/*
- * Allow things in gdb to be declared "const". If compiling ANSI, it
- * just works. If compiling with gcc but non-ansi, redefine to __const__.
- * If non-ansi, non-gcc, then eliminate "const" entirely, making those
+ * Allow things in gdb to be declared "volatile". If compiling ANSI, it
+ * just works. If compiling with gcc but non-ansi, redefine to __volatile__.
+ * If non-ansi, non-gcc, then eliminate "volatile" entirely, making those
* objects be read-write rather than read-only.
*/
-#ifndef const
-#ifndef __STDC__
-# ifdef __GNUC__
-# define const __const__
-# else
-# define const /*nothing*/
-# endif /* GNUC */
-#endif /* STDC */
-#endif /* const */
-
#ifndef volatile
#ifndef __STDC__
# ifdef __GNUC__
/* From other system libraries */
-#ifdef __STDC__
+#ifdef HAVE_STDDEF_H
#include <stddef.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifndef MALLOC_INCOMPATIBLE
+#ifdef NEED_DECLARATION_MALLOC
extern PTR malloc ();
+#endif
+#ifdef NEED_DECLARATION_REALLOC
extern PTR realloc ();
+#endif
+#ifdef NEED_DECLARATION_FREE
extern void free ();
+#endif
#endif /* MALLOC_INCOMPATIBLE */