[tree-ssa] Fix variables getting out of their scope
Daniel Berlin
dberlin@dberlin.org
Tue Aug 19 20:36:00 GMT 2003
On Tuesday, August 19, 2003, at 2:33 PM, Diego Novillo wrote:
> On Sun, 2003-08-17 at 17:37, Zdenek Dvorak wrote:
>
>> Not really -- not every BIND_EXPR has a BIND_EXPR_BLOCK.
>>
> Ah, yes. In that case the patch is OK.
>
Actually, Zdenek, if it's not too much trouble, could you update
bsi_move_* to make it reset the scope on the moved statement to the
proper new scope?
That way when you move a statement, you can just call fixup_var_scopes
on the defined variable with the old scope, and it'll do the right
thing.
I'd do it, but i figure you are more familiar with the scoping stuff
now :).
>
> Thanks. Diego.
>
More information about the Gcc-patches
mailing list