This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix PR/12187
- From: Richard Henderson <rth at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- Date: Wed, 8 Oct 2003 22:14:52 -0700
- Subject: Re: [tree-ssa] Fix PR/12187
- References: <1065656835.7088.118.camel@frodo.toronto.redhat.com>
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~