decl.c (poplevel): Deal with anonymous variables at for scope.
* decl.c (poplevel): Deal with anonymous variables at for scope. (maybe_inject_for_scope_var): Likewise. From-SVN: r35250
This commit is contained in:
parent
5e1a2fc70a
commit
c37833995f
|
@ -1,3 +1,8 @@
|
|||
2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* decl.c (poplevel): Deal with anonymous variables at for scope.
|
||||
(maybe_inject_for_scope_var): Likewise.
|
||||
|
||||
2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
|
||||
|
||||
* decl.c: Remove all signal handling code, now done in toplev.c.
|
||||
|
|
|
@ -1441,7 +1441,8 @@ poplevel (keep, reverse, functionbody)
|
|||
/* Remove declarations for all the DECLs in this level. */
|
||||
for (link = decls; link; link = TREE_CHAIN (link))
|
||||
{
|
||||
if (leaving_for_scope && TREE_CODE (link) == VAR_DECL)
|
||||
if (leaving_for_scope && TREE_CODE (link) == VAR_DECL
|
||||
&& DECL_NAME (link))
|
||||
{
|
||||
tree outer_binding
|
||||
= TREE_CHAIN (IDENTIFIER_BINDING (DECL_NAME (link)));
|
||||
|
@ -7843,6 +7844,9 @@ void
|
|||
maybe_inject_for_scope_var (decl)
|
||||
tree decl;
|
||||
{
|
||||
if (!DECL_NAME (decl))
|
||||
return;
|
||||
|
||||
if (current_binding_level->is_for_scope)
|
||||
{
|
||||
struct binding_level *outer
|
||||
|
|
Loading…
Reference in New Issue