[kaffe] compiling for m68k with optimization works.
Kiyo Inaba
inaba at src.ricoh.co.jp
Tue Apr 15 19:55:02 PDT 2003
Hi all,
For more than two years, kaffe for m68k can not be compiled with
optimization. I finally can allocate some time to check the reason
and found one bug which makes it impossible. I attached a patch
for this.
Kiyo
P.S. I am now trying to find the reason why jit3 does not work for m68k,
and why it is slower than jit.
---------------------------------------------------------------------------
diff -ruN kaffe-1.0.7-rc1.orig/m68k.ChangeLog kaffe-1.0.7-rc1/m68k.ChangeLog
--- kaffe-1.0.7-rc1.orig/m68k.ChangeLog Thu Jan 1 09:00:00 1970
+++ kaffe-1.0.7-rc1/m68k.ChangeLog Wed Apr 16 11:11:43 2003
@@ -0,0 +1,9 @@
+2003-04-16 Kiyo Inaba <inaba at src.ricoh.co.jp>
+
+ * config/m68k/common.h:
+ Fix register constraints in COMPARE_AND_EXCHANGE.
+
+ * config/m68k/linux/config.frag, config/m68k/netbsd1/config.frag:
+ Set optimization level O2 as default.
+
+
diff -ruN kaffe-1.0.7-rc1.orig/config/m68k/common.h kaffe-1.0.7-rc1/config/m68k/common.h
--- kaffe-1.0.7-rc1.orig/config/m68k/common.h Wed Mar 7 19:42:27 2001
+++ kaffe-1.0.7-rc1/config/m68k/common.h Wed Apr 16 10:51:43 2003
@@ -168,7 +168,7 @@
" movl #1, %1\n" \
"2:\n" \
: "=&r" (tmp), "=&r" (ret), "=m" (*(A)) \
- : "m" (*(A)), "r" (O), "r" (N) \
+ : "m" (*(A)), "d" (O), "d" (N) \
: "memory"); \
\
ret; \
diff -ruN kaffe-1.0.7-rc1.orig/config/m68k/linux/config.frag kaffe-1.0.7-rc1/config/m68k/linux/config.frag
--- kaffe-1.0.7-rc1.orig/config/m68k/linux/config.frag Sat Dec 18 14:09:34 1999
+++ kaffe-1.0.7-rc1/config/m68k/linux/config.frag Wed Apr 16 10:51:58 2003
@@ -3,8 +3,7 @@
#
Khost_cpu=m68k
Khost_os=linux
-CFLAGS="-g -fno-omit-frame-pointer"
-#CFLAGS="-g -O -fno-omit-frame-pointer"
+CFLAGS="-g -O2 -fno-omit-frame-pointer"
if [ "$cross_compiling" = yes ]; then
# if we use cross environment, following values may not be detected.
ac_cv_alignmentof_voidp=${ac_cv_alignmentof_voidp='2'}
diff -ruN kaffe-1.0.7-rc1.orig/config/m68k/netbsd1/config.frag kaffe-1.0.7-rc1/config/m68k/netbsd1/config.frag
--- kaffe-1.0.7-rc1.orig/config/m68k/netbsd1/config.frag Sat Dec 18 14:09:35 1999
+++ kaffe-1.0.7-rc1/config/m68k/netbsd1/config.frag Wed Apr 16 10:52:04 2003
@@ -3,7 +3,7 @@
#
Khost_cpu=m68k
Khost_os=netbsd1
-CFLAGS="-g -Wall -Wstrict-prototypes"
+CFLAGS="-g -O2 -Wall -Wstrict-prototypes"
if [ "$cross_compiling" = yes ]; then
# if we use cross environment, following values may not be detected.
ac_cv_alignmentof_voidp=${ac_cv_alignmentof_voidp='2'}
More information about the kaffe
mailing list