commit | 59cde534aa295bad7de29472b3cce9576d7996a8 | [log] [tgz] |
---|---|---|
author | Chris Dearman <chris.dearman@imgtec.com> | Wed Dec 04 18:53:49 2013 -0800 |
committer | Brian Carlstrom <bdc@google.com> | Thu Dec 05 15:52:08 2013 -0800 |
tree | acb79971feefac450a56bca758524614012c30e4 | |
parent | 93461f9b0b1304b94eee0ef33ef5679406e84dd8 [diff] |
Workaround for gcc volatile struct member bug gcc does not handle struct with volatile member assignments correctly. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47409 Using structure assignments for the StateAndFlag union can cause gcc to optimise the code incorrectly. Doing the assignment using the as_int member forces the correct behaviour. Change-Id: I6379d36add16c321b2e4d1dcd6fd8c959f3f92d6