<html><head></head><body bgcolor="#FFFFFF"><div><br></div><div>On Jun 15, 2012, at 6:07 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Fri, Jun 15, 2012 at 6:06 PM, Chad Rosier <span dir="ltr"><<a href="mailto:mcrosier@apple.com" target="_blank">mcrosier@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>Chandler, please revert.</div></div></blockquote><div><br></div><div>Thanks, is there anything we can do to help fix the underlying issue?</div></div></font></div></div></blockquote><div><br></div><div>I understand the underlying issue, but I'm not familiar enough with the frame handling code to point you in the right direction this very moment.  Essentially, the pops should be relative to the BP (RBX I believe), not the SP.</div><br><blockquote type="cite"><div><div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote"><div>Matt and I stared at it a bit, and it seems like there may be completely missing handling of the particular combination of features that this patch enables in a few places. If there is somewhere we can contribute patches to, let us know?</div></div></font></div></div></blockquote><div><br></div><div>I saw no CodeGen changes across the test-suite, but of course that's not your use case (i.e. the test-suite doesn't force stack alignment).  Finding the bugs are very helpful.. And test cases! :). Beyond that I don't have any great suggestions.</div><div><br></div><div> Chad</div><br><blockquote type="cite"><div><div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><span class="HOEnZb"><font color="#888888"><div><br></div><div> Chad<br><br><br></div>
</font></span><div><div class="h5"><div><br>On Jun 15, 2012, at 5:47 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div><div style="font-family:arial,helvetica,sans-serif"><font size="2"><div class="gmail_quote">On Fri, Jun 15, 2012 at 5:41 PM, Chad Rosier <span dir="ltr"><<a href="mailto:mcrosier@apple.com" target="_blank">mcrosier@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matt,<br>
I just wanted to let you know I'm working on a fix for this.  There's actually two issues going on here: (1) the issue you've pointed out and (2) the -mstackrealignment is forcing realignment when it's not necessary (i.e., the ABI alignment is >= then the forced alignment).  I haven't figured out a fix for (1), but I have a solution for (2) and fixing that will solve your problem.  Hopefully, I'll have this done in the next few days.  If you need a fix before then feel free to revert this commit.<br>

</blockquote><div><br></div><div>Unfortunately, the case we're hitting is actually #1, I suspect it's just this repro that is solved by #2. We might be able to adapt the repro to work w/ normal x86 and demonstrate this issue even w/ #2 solved.</div>

<div><br></div><div>We're blocked on this, can we revert and carry on?</div></div></font></div>
</div></blockquote></div></div></div>
</blockquote></div><br></font></div>
</div></blockquote></body></html>