[kaffe] Compilation failure with older gcc
Kiyo Inaba
inaba at src.ricoh.co.jp
Fri Jul 2 20:07:45 PDT 2004
Hi,
For older gcc (like 2.95.4), current code can not be compiled. These
gcc are still used with m68k/linux (debian-woody) or netbsd-1.6*.
Patch is attached.
Kiyo
diff -Naur --exclude CVS kaffe-snap-040701.orig/kaffe/kaffevm/verifier/verify-type.c kaffe-snap-040701/kaffe/kaffevm/verifier/verify-type.c
--- kaffe-snap-040701.orig/kaffe/kaffevm/verifier/verify-type.c 2004-06-29 06:14:33.000000000 +0900
+++ kaffe-snap-040701/kaffe/kaffevm/verifier/verify-type.c 2004-07-03 00:32:49.000000000 +0900
@@ -186,7 +186,7 @@
t->data.class = getClassFromSignature(t->data.sig, v->class->loader, v->einfo);
}
else if (t->tinfo & TINFO_NAME) {
- char* tmp = NULL;;
+ char* tmp = NULL;
const char* sig = t->data.name;
tmp = checkPtr(gc_malloc((strlen(sig) + 3) * sizeof(char), GC_ALLOC_VERIFIER));
More information about the kaffe
mailing list