Binutils failed to build on Linux/x86
Ian Lance Taylor
ian@wasabisystems.com
Tue Jan 13 01:52:00 GMT 2004
"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 */
More information about the Binutils
mailing list