This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH, Re: gprof failed to compile
I am getting a new build error for gprof on AIX.
Looks like it is caused by not typedef-ing bool.
>
> * gprof.h: Don't include ansidecl.h, do include bfd.h.
> (bool): Don't typedef.
The included patch reverts the bool to typedef-ed to int.
Ok to commit?
Tom
--
Tom Rix
GCC Engineer
trix@redhat.com
2002-01-31 Tom Rix <trix@redhat.com>
* gprof.h: Revert bool, use typedef.
diff -rcp src-old/gprof/gprof.h src/gprof/gprof.h
*** src-old/gprof/gprof.h Thu Jan 31 07:40:26 2002
--- src/gprof/gprof.h Thu Jan 31 08:17:37 2002
***************
*** 102,107 ****
--- 102,108 ----
#define DBG(l,s)
#endif
+ typedef int bool;
typedef enum
{
FF_AUTO = 0, FF_MAGIC, FF_BSD, FF_BSD44, FF_PROF