AArch64: __va_list.__stack must be 8-byte aligned

Oliver Stannard oliver.stannard at arm.com
Thu Feb 20 03:51:46 PST 2014


Hi all,

 

The attached patch fixes an issue where the __stack pointer in a va_list
struct was not rounded up to a multiple of 8 bytes by va_start. This
resulted in reading anonymous arguments from the wrong stack offset when the
last named argument was a struct which was not a multiple of 8 bytes, and
allocated on the stack.

 

Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140220/64ecf090/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-variadic-stack-pointer-alignment.patch
Type: application/octet-stream
Size: 3524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140220/64ecf090/attachment.obj>


More information about the llvm-commits mailing list