[LLVMbugs] [Bug 18069] Arrays on stack are misaligned.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Dec 1 04:08:31 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18069
Benjamin Kramer <benny.kra at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution|--- |INVALID
--- Comment #3 from Benjamin Kramer <benny.kra at gmail.com> ---
The x86_64 ABI requires the stack to be aligned at a 16 byte boundary when
entering a function and the compiler is safe to assume the alignment. Is there
something wrong with your setup code before going into the function?
i686-linux is more complicated. GCC unilaterally changed the alignment
assumption a couple of years ago to 16 bytes and we're following that now to
avoid breaking compatibility with GCC. The ABI requires only 4 bytes of
alignment and that's why you'll see stack realignment code on windows or
FreeBSD/i686.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131201/f9026b13/attachment.html>
More information about the llvm-bugs
mailing list