This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Binutils failed to build on Linux/x86
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: 12 Jan 2004 20:51:55 -0500
- Subject: Re: Binutils failed to build on Linux/x86
- References: <20040112224147.GA26468@lucon.org>
"H. J. Lu" <hjl@lucon.org> writes:
> I got
>
> In file included from /export/gnu/src/binutils/binutils/gprof/utils.c:29:
> /export/gnu/src/binutils/binutils/include/demangle.h:527: syntax error before
> "size_t"
> /export/gnu/src/binutils/binutils/include/demangle.h:527: warning: function
> declaration isn't a prototype
>
> The new demangle.h uses size_t without including proper header files.
Sorry about that. Fixed with this patch, checked into the gcc and src
repositories.
Ian
2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
* demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
Index: demangle.h
===================================================================
RCS file: /cvs/gcc/gcc/include/demangle.h,v
retrieving revision 1.23
diff -u -r1.23 demangle.h
--- demangle.h 12 Jan 2004 19:46:29 -0000 1.23
+++ demangle.h 13 Jan 2004 01:48:35 -0000
@@ -23,6 +23,11 @@
#include "ansidecl.h"
+#ifdef ANSI_PROTOTYPES
+/* Get a definition for size_t. */
+#include <stddef.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */