[kaffe] CVS kaffe (inaba): Fix optimization bug of jit for m68k.
Kaffe CVS
cvs-commits at kaffe.org
Mon May 9 16:41:15 PDT 2005
PatchSet 6453
Date: 2005/05/09 23:35:57
Author: inaba
Branch: HEAD
Tag: (none)
Log:
Fix optimization bug of jit for m68k.
Members:
config/m68k/jit-m68k.def:1.10->1.11
config/m68k/jit3-m68k.def:1.13->1.14
config/m68k/linux/config.frag:1.5->1.6
config/m68k/netbsd1/config.frag:INITIAL->1.9
Index: kaffe/config/m68k/jit-m68k.def
diff -u kaffe/config/m68k/jit-m68k.def:1.10 kaffe/config/m68k/jit-m68k.def:1.11
--- kaffe/config/m68k/jit-m68k.def:1.10 Fri May 6 15:24:25 2005
+++ kaffe/config/m68k/jit-m68k.def Mon May 9 23:35:57 2005
@@ -743,7 +743,7 @@
LOUT(imm);
}
-#if defined(JIT3)
+#if !defined(HAVE_NO_MOVEM)
static inline void
op_moveml_ro(int mask, int areg, int disp)
{
@@ -1249,11 +1249,21 @@
/* Work out size of stack frame */
framesize = (maxLocal - maxArgs + maxStack + maxTemp) * SLOTSIZE;
op_linkw_ai(REG_fp, -framesize);
+
+#if defined(HAVE_NO_MOVEM)
+#else
+ op_moveml_rp(SAVEMASK, REG_sp);
+#endif
}
define_insn(epilogue, epilogue_xxx)
{
KaffeJIT_setEpilogueLabel ((uintp)CODEPC);
+
+#if defined(HAVE_NO_MOVEM)
+#else
+ op_moveml_pr(REG_sp, RESTOREMASK);
+#endif
op_unlk_a(REG_fp);
op_rts();
Index: kaffe/config/m68k/jit3-m68k.def
diff -u kaffe/config/m68k/jit3-m68k.def:1.13 kaffe/config/m68k/jit3-m68k.def:1.14
--- kaffe/config/m68k/jit3-m68k.def:1.13 Fri May 6 15:24:25 2005
+++ kaffe/config/m68k/jit3-m68k.def Mon May 9 23:35:58 2005
@@ -743,7 +743,7 @@
LOUT(imm);
}
-#if defined(JIT3)
+#if !defined(HAVE_NO_MOVEM)
static inline void
op_moveml_ro(int mask, int areg, int disp)
{
Index: kaffe/config/m68k/linux/config.frag
diff -u kaffe/config/m68k/linux/config.frag:1.5 kaffe/config/m68k/linux/config.frag:1.6
--- kaffe/config/m68k/linux/config.frag:1.5 Mon Aug 4 09:20:04 2003
+++ kaffe/config/m68k/linux/config.frag Mon May 9 23:35:58 2005
@@ -1,7 +1,7 @@
#
# m68k/Linux configuration.
#
-CFLAGS="$CFLAGS -fno-omit-frame-pointer"
+CFLAGS="$CFLAGS -O1 -fno-omit-frame-pointer"
# if we use cross environment, following values may not be detected.
if [ "$cross_compiling" = yes ]; then
===================================================================
Checking out kaffe/config/m68k/netbsd1/config.frag
RCS: /home/cvs/kaffe/kaffe/config/m68k/netbsd1/config.frag,v
VERS: 1.9
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/config/m68k/netbsd1/config.frag Mon May 9 23:41:15 2005
@@ -0,0 +1,8 @@
+#
+# m68k/Netbsd1 configuration.
+#
+CFLAGS="$CFLAGS -O1 -fno-omit-frame-pointer"
+LDFLAGS="$LDFLAGS -lm68k"
+if [ "$cross_compiling" = yes ]; then
+ ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
+fi
More information about the kaffe
mailing list