[Bug target/53016] memcpy optimization can cause unaligned access on ARM
mikpe at it dot uu.se
gcc-bugzilla@gcc.gnu.org
Tue Apr 17 16:58:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53016
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|mikpe at it dot uu.se |
--- Comment #5 from Mikael Pettersson <mikpe at it dot uu.se> 2012-04-17 16:55:34 UTC ---
If you have misaligned data either use void*/char* and explicit address
arithmetic, or use __attribute__((packed)) on the misaligned types.
More information about the Gcc-bugs
mailing list