Message223565
| Author |
ronaldoussoren |
| Recipients |
mark.dickinson, ned.deily, ronaldoussoren, wayedt |
| Date |
2014年07月21日.08:09:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1405930155.42.0.724609420839.issue22012@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|