This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix variables getting out of their scope
- From: Jason Merrill <jason at redhat dot com>
- To: law at redhat dot com
- Cc: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>, Diego Novillo <dnovillo at redhat dot com>, Daniel Berlin <dberlin at dberlin dot org>, Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Aug 2003 03:58:47 -0400
- Subject: Re: [tree-ssa] Fix variables getting out of their scope
- References: <200308112209.h7BM948L003340@speedy.slc.redhat.com>
On Mon, 11 Aug 2003 16:09:04 -0600, law@redhat.com wrote:
> Note that blindly moving variables to an outer scope may have impacts on
> languages were variables are constructed/destructed -- suddenly the
> destructors don't run when you expect them.
In GIMPLE, constructors and destructors are explicit function calls.
Moving the variable wouldn't affect them.
Jason