Patch: gcj fix from Zack

Tom Tromey tromey@cygnus.com
Fri May 26 11:55:00 GMT 2000


Alex told me he approved this patch but never saw it go in.
I'm committing it.

2000-05-26  Zack Weinberg  <zack@wolery.cumb.org>

	* java/parse.y (find_applicable_accessible_methods_list):
	Don't add an uninitialized value to the list.

Tom

Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.170
diff -u -r1.170 parse.y
--- parse.y	2000/05/26 01:16:20	1.170
+++ parse.y	2000/05/26 18:53:11
@@ -10001,11 +10001,13 @@
 	for (i = 1; i < n; i++)
 	  {
 	    tree t = BINFO_TYPE (TREE_VEC_ELT (basetype_vec, i));
-	    tree rlist;
 	    if (t != object_type_node)
-	      rlist = find_applicable_accessible_methods_list (lc, t,
-							       name, arglist);
-	    list = chainon (rlist, list);
+	      {
+		tree rlist
+		  = find_applicable_accessible_methods_list (lc, t,
+							     name, arglist);
+		list = chainon (rlist, list);
+	      }
 	  }
 	object_done = 0;
       }


More information about the Gcc-patches mailing list