Re: [PATCH] Incorrect volatile bitfield load-extend

2011-11-18 Thread Richard Earnshaw
On 10/11/11 03:57, Joey Ye wrote: Trunk gcc mis-handles following volatile bitfield case on ARM target: $ cat a.c extern void check(int); typedef struct { volatile unsigned short a:8, b:8; } BitStruct; BitStruct bits = {1, 2}; int main () { check(bits.a); return 0; } $

Re: [PATCH] Incorrect volatile bitfield load-extend

2011-11-17 Thread Ye Joey
Ping On Thu, Nov 10, 2011 at 11:57 AM, Joey Ye joey...@arm.com wrote: Trunk gcc mis-handles following volatile bitfield case on ARM target: $ cat a.c extern void check(int); typedef struct {  volatile unsigned short a:8, b:8; } BitStruct; BitStruct bits = {1, 2}; int main () {  

[PATCH] Incorrect volatile bitfield load-extend

2011-11-09 Thread Joey Ye
Trunk gcc mis-handles following volatile bitfield case on ARM target: $ cat a.c extern void check(int); typedef struct { volatile unsigned short a:8, b:8; } BitStruct; BitStruct bits = {1, 2}; int main () { check(bits.a); return 0; } $ arm-none-eabi-gcc -v 21 |grep gcc version gcc version