aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-10-28 21:33:07 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-10-28 21:33:07 -0400
commit415f766a6507d0898d7c169c2d29a6b06fbf7991 (patch)
treedb8d5075620bd9799c551ebbeb0169127b06e73d /gcc
parente1eb754f6005d190d3fb9ada1b669bf8d15ca320 (diff)
downloadgcc-415f766a6507d0898d7c169c2d29a6b06fbf7991.zip
gcc-415f766a6507d0898d7c169c2d29a6b06fbf7991.tar.gz
gcc-415f766a6507d0898d7c169c2d29a6b06fbf7991.tar.bz2
(check_methods_accessible): Fix bug in -Wno-protocol.
(check_methods_accessible): Fix bug in -Wno-protocol. Reset chain to bottom class for each search. From-SVN: r5927
Diffstat (limited to 'gcc')
-rw-r--r--gcc/objc/objc-act.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 7db3d88..3431f19b 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -5363,9 +5363,11 @@ check_methods_accessible (chain, context, mtype)
{
int first = 1;
tree list;
+ tree base_context = context;
while (chain)
{
+ context = base_context;
while (context)
{
if (mtype == '+')