<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">It probably makes sense to say that
alloca should have the same alignment as the default stack
alignment, simply because it's hard to do anything useful with
completely unaligned memory. That said, the default stack
alignment is 4 bytes on 32-bit Windows, not 16.<br>
<br>
-Eli<br>
<br>
On 9/9/2016 10:29 AM, Richard Smith wrote:<br>
</div>
<blockquote
cite="mid:CAOfiQqna_J0m3f85P_vj04gpr=ju25Y4SkeMEAapgzOCH+-zfQ@mail.gmail.com"
type="cite">There's an (unconvincing to me) explanation for why
gcc does this here: <a moz-do-not-send="true"
href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19131">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19131</a>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 9 Sep 2016 10:14 am, "Eli Friedman"
<<a moz-do-not-send="true"
href="mailto:efriedma@codeaurora.org">efriedma@codeaurora.org</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">efriedma
added a comment.<br>
<br>
This is probably going to lead to someone complaining about
clang realigning the stack on 32-bit Windows; are your sure
we're choosing the right alignment there?<br>
<br>
<br>
<a moz-do-not-send="true"
href="https://reviews.llvm.org/D24378" rel="noreferrer"
target="_blank">https://reviews.llvm.org/<wbr>D24378</a><br>
<br>
<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>