<div>Rafael,</div><div><br></div><div>The default on X86-32 is 4-byte alignment for doubles and long long (both in structs and on the stack).</div><meta charset="utf-8"><div><div>(gcc has the flag -malign-double to increase alignment to 8-bytes).</div>
<div><br></div><div>- David M</div><div><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 11:47 AM, Rafael Espindola <span dir="ltr"><<a href="mailto:espindola@google.com">espindola@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> Could someone with more general target knowledge comment on the correctness<br>
> of this change?<br>
<br>
</div>This looks right. It probably fixes doubles on x86 too. I will give it<br>
a try and commit if everything is ok.<br>
<br>
> Thank you,<br>
>   David Meyer<br>
> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
><br>
<br>
Cheers,<br>
<font color="#888888">--<br>
Rafael Ávila de Espíndola<br>
</font></blockquote></div><br></div></div>