Message223565
I just confirmed that clang only uses the LSB for _Bool values by looking at the assembly generated for the following code:
<quote>
#include <stdbool.h>
#include <stdio.h>
int main(void)
{
_Bool x;
*(unsigned char*)&x = 42;
printf("%d\n", (int)x);
return 0;
}
</quote>
The attached patch fixes the issue for me. The new testcase fails without the changes to _struct.c and passes with those changes. |
|
Date |
User |
Action |
Args |
2014-07-21 08:09:15 | ronaldoussoren | set | recipients:
+ ronaldoussoren, mark.dickinson, ned.deily, wayedt |
2014-07-21 08:09:15 | ronaldoussoren | set | messageid: <1405930155.42.0.724609420839.issue22012@psf.upfronthosting.co.za> |
2014-07-21 08:09:15 | ronaldoussoren | link | issue22012 messages |
2014-07-21 08:09:15 | ronaldoussoren | create | |
|