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
On Wed, 13 Aug 2003 20:56:11 +0200, Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> wrote:
>> > Well, thinking about it again, there is one problem -- BIND_EXPRs may
>> > get removed. This does not matter with my approach, but possibly could
>> > with your one ... hmm... probably not. OK, will do it once I have a
>> > time.
>> >
>> They only get removed if there are no variables nor code left, so that
>> shouldn't be a problem.
>
> this still could be a problem, as I traverse parent scopes to check that
> the variable is really moved out of the scope in that it is declared.
> But the BIND_EXPR is not really removed, just it is unreachable from the
> function tree, so this should not cause problems.
More precisely, the BIND_EXPR is removed, but the BLOCK remains.
Jason