http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46912
--- Comment #3 from Mike Stump <mikestump at comcast dot net> 2010-12-16
21:59:44 UTC ---
> it's all fall-out from the different assumed sizes of Bool (see also 46902).
? bool/_Bool is 4 on pcc. Making it any other size introduces a abi bug.
What code assumes _Bool is 1 byte? That would be the root cause that needs
fixing.
> I think (subject to Mike's agreement) that, since Darwin's <stdbool.h> does
> not
> set bool to int for GCC > 3
You're misreading it:
$ cat t.c
int sz = sizeof(_Bool);
$ gcc -arch ppc t.c -S -o -
.machine ppc7400
_sz:
.long 4
> .. that we should default to one byte bools on PPC darwin (there is no effect
> on x86).
No, that would be bad.