<div dir="ltr">Yeah, I've certainly never had to mark leaf's before...<div style>Turns out it was my bad, wrong options, although SH4 is broken, which is what started me scratching my head in the first place.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 March 2013 03:40, David Nadlinger <span dir="ltr"><<a href="mailto:see@klickverbot.at" target="_blank">see@klickverbot.at</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">On Monday, 4 March 2013 at 17:35:45 UTC, Iain Buclaw wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Mar 4, 2013 3:27 PM, "Manu" <<a href="mailto:turkeyman@gmail.com" target="_blank">turkeyman@gmail.com</a>> wrote:<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm doing a lot of experiments with GDC, and I'm noticing that leaf<br>
</blockquote>
functions are still generating a stack frame and doing pointless work...<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
int leaf() pure nothrow<br>
{<br>
  return 0;<br>
}<br>
<br>
compile with -frelease -finline -O3, etc<br>
<br>
I expect 2 opcodes, load immediate and return, but I get a whole<br>
</blockquote>
pointless function including memory access O_O<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Any ideas? Is this normal?<br>
</blockquote>
<br></div></div>
I'd expect so.<br>
</blockquote>
<br>
?!<br>
<br>
I think you are seriously underestimating GCC here... ;)<span class="HOEnZb"><font color="#888888"><br>
<br>
David<br>
</font></span></blockquote></div><br></div>