<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Apr 1, 2013, at 11:41 PM, Anton Korobeynikov <<a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">the stack, which is everything, will work.<br></blockquote>Indeed. The caller correctly puts the argument into %ecx, however, the<br>callee expects to see it in %rdi (which is x86-64 calling convention).<br>Can you try to indicate the working commit?<br></blockquote>Also, if you compile with -O2 - does the snippet work?<br></blockquote>I believe the problem is caused by r177113. This way -O2 should help you.<br></div></blockquote><div><br></div><div>This should be fixed as of revision 178549.</div><div><br></div> Chad</div><div><br><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">--<br>With best regards, Anton Korobeynikov<br>Faculty of Mathematics and Mechanics, Saint Petersburg State University</div></blockquote></div><br></body></html>