Re: [patch] Improve support for up-level references (1/n)

2018-05-22 Thread Richard Biener
On Fri, May 18, 2018 at 11:52 PM Eric Botcazou wrote: > > + /* If the next declaration is a PARM_DECL pointing to theDECL, > > +we need to adjust its VALUE_EXPR directly, since chains of > > +VALUE_EXPRs run afoul of garbage collection. This occurs > >

Re: [patch] Improve support for up-level references (1/n)

2018-05-18 Thread Eric Botcazou
> + /* If the next declaration is a PARM_DECL pointing to theDECL, > +we need to adjust its VALUE_EXPR directly, since chains of > +VALUE_EXPRs run afoul of garbage collection. This occurs > +in Ada for Out parameters that aren't copied i

Re: [patch] Improve support for up-level references (1/n)

2018-05-18 Thread Richard Biener
On Fri, May 18, 2018 at 9:43 AM Eric Botcazou wrote: > Hi, > the compiler has had built-in support for nested functions for a long time, > which makes it possible to support them in GNU C (as an extension) and in Ada; > Fortran uses them too but marginally. The support was entirely rewritten fo

[patch] Improve support for up-level references (1/n)

2018-05-18 Thread Eric Botcazou
Hi, the compiler has had built-in support for nested functions for a long time, which makes it possible to support them in GNU C (as an extension) and in Ada; Fortran uses them too but marginally. The support was entirely rewritten for GCC 4 and a few rough edges have remained since then, whic