[llvm-commits] [PATCH] [msan] Change va_start/va_copy shadow memcpy alignment to 8
Evgeniy Stepanov
eugenis at google.com
Thu Jan 10 01:24:18 PST 2013
According to AMD64 psABI document, va_list is defined as a 1-element array of 24-byte-sized aggregates. Then, in 3.1.2:
An array uses the same alignment as its elements, except that a local or global array variable that requires at least 16 bytes, or a C99 local or global variable length array variable, always has alignment of at least 16 bytes.
Sounds like va_list must be 16-bytes aligned. Or do I misunderstand the standard somewhere? Could you provide an example?
http://llvm-reviews.chandlerc.com/D276
More information about the llvm-commits
mailing list