[tree-ssa] Fix PR/12187

Richard Henderson rth@redhat.com
Thu Oct 9 05:14:00 GMT 2003


On Wed, Oct 08, 2003 at 07:47:16PM -0400, Diego Novillo wrote:
> DECL_NONLOCAL variables should be treated as call-clobbered variables. 
> This actually pessimizes code, so I tried having them be considered
> call-clobbered only when calling a nested function, but according to rth
> that will have problems because it is possible to take the address of a
> nested function and call it from somewhere else.

What you have to do is discover that no address of a nested function
escapes.  Or probably easier, that no such address is ever taken.

Or not bother, since the un-nesting scheme that I described the other
day would obviate any such scheme.


r~



More information about the Gcc-patches mailing list