<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 31, 2014 at 1:20 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Arnaud, </p>
<p dir="ltr">Can't this affect debugging as well?</p>
<p dir="ltr">I mean, if you run this on O1 or less, you'll have a lot more variables optimised away, especially at the end of the function, and at higher optimisation levels you'll have a lot less variables to care about.</p>
</blockquote><div>This would apply to unnamed temporaries, which presumably have no debug info and can't be examined in a debugger.</div><div><br></div><div>As to his actual question, I have no idea. Lifetime of C++ temporaries is subtle. I always have to defer to Richard and John. The static analysis guys are having a similar pile of trouble figuring out where to insert calls to C++ destructors in the CFG.</div>
</div></div></div>