This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: gcjh and JNI stubs


I'm checking this in.

`gcjh -stubs -jni' incorrectly generated an include for `gcj_cni.h'.
Not only does this header not exist, but the "real" header,
`gcj/cni.h', shouldn't be included by JNI stubs anyway.

2000-11-08  Tom Tromey  <tromey@cygnus.com>

	* gjavah.c (process_file): Only include gcj/cni.h when generating
	CNI stubs.

Tom

Index: gjavah.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/gjavah.c,v
retrieving revision 1.65
diff -u -r1.65 gjavah.c
--- gjavah.c	2000/11/04 04:57:33	1.65
+++ gjavah.c	2000/11/08 20:28:38
@@ -1766,7 +1766,8 @@
 	  if (len > 6 && ! strcmp (&jcf->classname[len - 6], ".class"))
 	    len -= 6;
 	  print_include (out, jcf->classname, len);
-	  print_include (out, "gcj/cni", -1);
+	  if (! flag_jni)
+	    print_include (out, "gcj/cni", -1);
 	}
     }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]