This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cp-demangle.c & dyn-string.c NULL patch
- To: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Subject: cp-demangle.c & dyn-string.c NULL patch
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Wed, 7 Jun 2000 23:37:01 +0200 (CEST)
Bootstrapping on m68k-motorola-syv fails not only with the problems Kaveh has
fixed, but also because NULL is not defined. On my platform, NULL is only
defined in stdio.h.
OK to commit ?
Philippe De Muyter <phdm@macqel.be>
* cp-demangle.c (stdio.h): File included unconditionaly.
* dyn-string.c (stdio.h): File included.
Index: cp-demangle.c
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/cp-demangle.c,v
retrieving revision 1.2
diff -u -p -r1.2 cp-demangle.c
--- cp-demangle.c 2000/06/05 18:24:07 1.2
+++ cp-demangle.c 2000/06/07 15:08:21
@@ -33,9 +33,7 @@
#include <stdlib.h>
#endif
-#if defined(CP_DEMANGLE_DEBUG) || defined(STANDALONE_DEMANGLER)
#include <stdio.h>
-#endif
#ifdef HAVE_STRING_H
#include <string.h>
Index: dyn-string.c
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/dyn-string.c,v
retrieving revision 1.1
diff -u -p -r1.1 dyn-string.c
--- dyn-string.c 2000/06/05 02:28:41 1.1
+++ dyn-string.c 2000/06/07 15:08:21
@@ -23,6 +23,8 @@ Boston, MA 02111-1307, USA. */
#include "config.h"
#endif
+#include <stdio.h>
+
#ifdef HAVE_STRING_H
#include <string.h>
#endif