This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/53016] memcpy optimization can cause unaligned access on ARM


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

--- Comment #7 from Mikael Pettersson <mikpe at it dot uu.se> 2012-04-17 17:27:20 UTC ---
The problem is the fact that you attach explicit child_t/parent_t types to
pointers not aligned accordingly.  Casting those typed pointers to void*
doesn't eliminate the implied alignment.  Marking those types packed fixes the
test case.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]