This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Fix PR/12187


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]