[cfe-dev] Adding lifetime begin/end to unnamed temporaries

Renato Golin renato.golin at linaro.org
Fri Aug 1 04:25:33 PDT 2014

On 31 July 2014 17:59, Arnaud A. de Grandmaison
<arnaud.degrandmaison at arm.com> wrote:
> By the way, my patch indeed also affected some debuginfo (some breakpoint
> location if I remember correctly). I have switched temporarily to something
> else, but this  patch proved to be extremely complex --- complexity linked
> to what you can find in the thread about temporary destructors. There is
> something going wrong in how the scopes are handled and my patch triggers
> it. I am probably breaking some undocumented or implicit assumptions.  But
> there is definitely a lot of potential to reduce stack usage, and we saw
> that on real code.

This might be a bad idea, but is it possible to start with a C-only
implementation, and move on with C++ later? At least we can get the
general implementation right, and then only fiddle with exception
handling when we need to.


More information about the cfe-dev mailing list