[Bug c/53085] write to volatile struct member is missing on Cortex-M3

2012-04-23 Thread unixoid2003 at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085 --- Comment #2 from brag 2012-04-23 13:19:03 UTC --- The simpler example: struct aa{ volatile unsigned short a; }; struct aa AAmem; void f(){ AAmem.a=0xff; AAmem.a=0xff; } <_Z1fv>: 0:f240 0300 movwr3, #0

[Bug c/53085] write to volatile struct member is missing on Cortex-M3

2012-04-23 Thread unixoid2003 at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53085 --- Comment #1 from brag 2012-04-23 12:58:17 UTC --- struct aa{ volatile unsigned short a; unsigned short b; volatile unsigned short c; unsigned short d; }; #define AAmem ((struct aa *) 256) static inline unsigned int tx(unsigne