This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: gcjh and JNI stubs
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: Patch: gcjh and JNI stubs
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 08 Nov 2000 13:45:53 -0700
- Reply-To: tromey at cygnus dot com
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);
}
}