kaffe-snap for SunOS 4
Kiyo Inaba
inaba at src.ricoh.co.jp
Tue Jun 2 21:49:11 PDT 1998
> I noticed config/sparc/common.h was modified extensively.
OK, I made a patch file for kaffe-snap. This needs gcc-2.8.0 (or
newer) because of sysdepCallMethod definition is changed extensively.
Since my gmake does not accept "COMMON+=" directive, I also
included patch for this.
Even if the old make work around can not be reflected to source
tree, please reflect incorrect SP_OFFSET for SunOS 4.0.
If I want to use unix-jthreads rather than unix-internal thread,
ld complains not to find function 'atexit'. This 'atexit' function
is not available on SunOS 4.0, and isn't it better to ifdef'ed
function call to 'atexit' and detect whether it is available or
not by automatic configuration?
Kiyo
======================================================================
diff -cr kaffe-snap/config/sparc/sunos4/md.h kaffe-temp/config/sparc/sunos4/md.h
*** kaffe-snap/config/sparc/sunos4/md.h Tue May 12 05:56:36 1998
--- kaffe-temp/config/sparc/sunos4/md.h Wed Jun 3 10:29:54 1998
***************
*** 15,20 ****
--- 15,26 ----
#include "sparc/common.h"
#include "sparc/threads.h"
+ /*
+ * Redefine stack pointer offset.
+ */
+ #undef SP_OFFSET
+ #define SP_OFFSET 2
+
#if defined(TRANSLATOR)
#include "jit-md.h"
#endif
diff -cr kaffe-snap/kaffe/kaffevm/jni.c kaffe-temp/kaffe/kaffevm/jni.c
*** kaffe-snap/kaffe/kaffevm/jni.c Fri May 29 05:51:15 1998
--- kaffe-temp/kaffe/kaffevm/jni.c Wed Jun 3 10:51:50 1998
***************
*** 126,131 ****
--- 126,132 ----
void Kaffe_JNIExceptionHandler(void);
jint Kaffe_GetVersion(JNIEnv*);
+ int vfprintf(FILE *, char *, va_list);
jint
JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
diff -cr kaffe-snap/kaffe/kaffevm/Makefile.in kaffe-temp/kaffe/kaffevm/Makefile.in
*** kaffe-snap/kaffe/kaffevm/Makefile.in Fri May 29 04:03:34 1998
--- kaffe-temp/kaffe/kaffevm/Makefile.in Wed Jun 3 10:29:17 1998
***************
*** 72,78 ****
@cpu_os_frag@
@threads_frag@
! OBJECT= $(COMMON) $(ENGINE_OBJECTS) $(CPU_OBJECTS) $(CPUOS_OBJECTS)
DEPENDS= $(OBJECT:@OBJEXT@=.d)
--- 72,78 ----
@cpu_os_frag@
@threads_frag@
! OBJECT= $(COMMON) $(THREAD) $(ENGINE_OBJECTS) $(CPU_OBJECTS) $(CPUOS_OBJECTS)
DEPENDS= $(OBJECT:@OBJEXT@=.d)
diff -cr kaffe-snap/kaffe/kaffevm/systems/unix-internal/Makefile.frag kaffe-temp/kaffe/kaffevm/systems/unix-internal/Makefile.frag
*** kaffe-snap/kaffe/kaffevm/systems/unix-internal/Makefile.frag Sun Apr 5 07:52:29 1998
--- kaffe-temp/kaffe/kaffevm/systems/unix-internal/Makefile.frag Wed Jun 3 10:28:15 1998
***************
*** 6,11 ****
# See the file "license.terms" for information on usage and redistribution
# of this file.
! COMMON+=\
internal$(OBJEXT) \
internalCalls$(OBJEXT)
--- 6,11 ----
# See the file "license.terms" for information on usage and redistribution
# of this file.
! THREAD=\
internal$(OBJEXT) \
internalCalls$(OBJEXT)
diff -cr kaffe-snap/kaffe/kaffevm/systems/unix-jthreads/Makefile.frag kaffe-temp/kaffe/kaffevm/systems/unix-jthreads/Makefile.frag
*** kaffe-snap/kaffe/kaffevm/systems/unix-jthreads/Makefile.frag Sun Apr 5 07:52:29 1998
--- kaffe-temp/kaffe/kaffevm/systems/unix-jthreads/Makefile.frag Wed Jun 3 10:28:24 1998
***************
*** 6,11 ****
# See the file "license.terms" for information on usage and redistribution
# of this file.
! COMMON+=\
internal$(OBJEXT) \
jthread$(OBJEXT)
--- 6,11 ----
# See the file "license.terms" for information on usage and redistribution
# of this file.
! THREAD=\
internal$(OBJEXT) \
jthread$(OBJEXT)
More information about the kaffe
mailing list