Patch: FYI: gcjh fixlet

Tom Tromey tromey@redhat.com
Wed Oct 24 11:35:00 GMT 2001


I'm checking this in.

This lets gcjh work with multiple input files.
It also fixes a minor bug in HANDLE_METHOD.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gjavah.c (print_namelet): Clear subnamelets.

Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.75
diff -u -r1.75 gjavah.c
--- gjavah.c 2001/11/14 01:43:56 1.75
+++ gjavah.c 2001/12/09 01:22:30
@@ -193,6 +193,7 @@
 #define HANDLE_METHOD(ACCESS_FLAGS, NAME, SIGNATURE, ATTRIBUTE_COUNT)	\
   {									\
     method_synthetic = 0;						\
+    method_printed = 0;							\
     method_signature = SIGNATURE;					\
     if (ATTRIBUTE_COUNT)						\
       method_synthetic = peek_attribute (jcf, ATTRIBUTE_COUNT,		\
@@ -208,7 +209,7 @@
       } 								\
     if (method_pass && !method_synthetic)				\
       {									\
-	decompiled = 0; method_printed = 0;				\
+	decompiled = 0;							\
 	if (out)							\
 	  print_method_info (out, jcf, NAME, SIGNATURE,			\
 			     ACCESS_FLAGS);				\
@@ -1757,6 +1758,7 @@
       print_namelet (out, c, depth + 2);
       c = next;
     }
+  name->subnamelets = NULL;
 
   if (name->name)
     {



More information about the Java-patches mailing list