[incremental] Patch: FYI: fix scope lookup callback buglet
Tom Tromey
tromey@redhat.com
Tue Jan 15 14:32:00 GMT 2008
I'm checking this in on the incremental-compiler branch.
We only want to note an anti-depenency at file scope. This patch adds
the missing check in lookup_name_in_scope.
This fixes a few test suite failures. We're down to 78 now.
Tom
ChangeLog:
2008-01-14 Tom Tromey <tromey@redhat.com>
* c-decl.c (lookup_name_in_scope): Only register anti-dependency
at file scope.
Index: c-decl.c
===================================================================
--- c-decl.c (revision 131535)
+++ c-decl.c (working copy)
@@ -2998,7 +2998,8 @@
c_parser_lookup_callback (name, b->decl, false);
return b->decl;
}
- c_parser_lookup_callback (name, NULL_TREE, false);
+ if (scope->depth == 1)
+ c_parser_lookup_callback (name, NULL_TREE, false);
return 0;
}
More information about the Gcc-patches
mailing list