[Bug c/56341] GCC produces unaligned data access

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Fri Feb 15 13:13:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56341

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> 2013-02-15 13:12:56 UTC ---
Created attachment 29465
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29465
proposed patch

attached is a patch for gcc-4.6.3 that should resolve this issue.
volatile packed struct members are accessed in words if structure
is aligned by 2 and in bytes if structure is aligned by 1.



More information about the Gcc-bugs mailing list