
Tom Rini trini@ti.com writes:
On Mon, Nov 18, 2013 at 05:28:56PM +0100, Wolfgang Denk wrote:
Dear Masahiro Yamada,
In message 1384770105-32364-1-git-send-email-yamada.m@jp.panasonic.com you wrote:
Currently U-boot defins bool type by including <stdbool.h> rather than defining directly. But it does not work for some cross compilers.
Can you explain why this fails?
AFAICT, <stdbool.h> is a compiler provided header file, which is mandatory by the C99 ISO standard. So if a compiler fails to work using it, it looks as if the compiler was broken.
Indeed. And the very ancient but (as far as I know) still "latest" gcc for the SPARC port, which is 3.4.4, has it. So if there's a problem here with blackfin it feels strongly like a toolchain issue.
FWIW, my Blackfin cross-gcc has a correct stdbool.h. Even gcc 2.95 has it.