[PATCH] ARM: Correct alignment of structs passed as byval pointer

Oliver Stannard oliver.stannard at arm.com
Tue Mar 11 05:03:36 PDT 2014


When a struct has bitfields overlapping with other members (as required by
the AAPCS), clang uses a packed struct to represent this. However, if such a
struct is large enough for clang to pass it as a byval pointer (>64 bytes),
it is not correctly aligned. The attached patch corrects this.

 

Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/fc82bacb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitfield-struct-alignment.patch
Type: application/octet-stream
Size: 3270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/fc82bacb/attachment.obj>


More information about the cfe-commits mailing list