Re: [kaffe] SuperH header fix

2004-04-06 Thread Dalibor Topic
Hi Tomo,

TOMO sasaki wrote:
I tried to uild Kaffe for SH4 cpu board. but i got error during compile.
i guess superh user can be built after modified two files below.
config/superh/md.h
  syntax error in #include statement for config/superh/common.h
  syntax error fixed by add  (double quotation) at end of line.
config/superh/common.h
  add definition for ALIGNMENT_OF_SIZE for SuperH.
  developers/alignment_of_size results are similer as i386.
I got working Kaffe(intrp engine) on SH4 cpu board, also X awt is works
for me. but regression test that is using jdouble and jfloat are
failed.
currently, i'm tracking this problem to get work completely.
Thank you very much for your patches, I've checked them in.

keep up the good work,
dalibor topic
___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] SuperH header fix

2004-03-30 Thread TOMO sasaki

I tried to uild Kaffe for SH4 cpu board. but i got error during compile.
i guess superh user can be built after modified two files below.


config/superh/md.h
  syntax error in #include statement for config/superh/common.h
  syntax error fixed by add  (double quotation) at end of line.

config/superh/common.h
  add definition for ALIGNMENT_OF_SIZE for SuperH.
  developers/alignment_of_size results are similer as i386.


I got working Kaffe(intrp engine) on SH4 cpu board, also X awt is works
for me. but regression test that is using jdouble and jfloat are
failed.

currently, i'm tracking this problem to get work completely.


Thanks,

diff -urN kaffe.orig/config/superh/common.h kaffe/config/superh/common.h
--- kaffe.orig/config/superh/common.h   2003-12-15 01:31:39.0 +0900
+++ kaffe/config/superh/common.h2004-03-31 12:43:08.0 +0900
@@ -15,6 +15,9 @@
 #ifndef __superh_common_h
 #define __superh_common_h
 
+/* The SuperH never aligns to more than a 4 byte boundary. */
+#defineALIGNMENT_OF_SIZE(S)((S)  4 ? (S) : 4)
+
 #include stddef.h
 
 /*
diff -urN kaffe.orig/config/superh/linux/md.h kaffe/config/superh/linux/md.h
--- kaffe.orig/config/superh/linux/md.h 2003-12-15 01:31:40.0 +0900
+++ kaffe/config/superh/linux/md.h  2004-03-31 12:42:04.0 +0900
@@ -15,7 +15,7 @@
 #ifndef __superh_linux_md_h
 #define __superh_linux_md_h
  
-#include superh/common.h
+#include superh/common.h
 #include superh/sysdepCallMethod.h
 #include superh/threads.h
 


 Tomo, Sasaki  [EMAIL PROTECTED]
 Business Development Group

 Livedoor Co., Ltd.  http://corp.livedoor.com/
 Roppongi Hills Mori Tower 38th Floor,
 6-10-1 Roppongi, Minato-ku, Tokyo, JAPAN
 Phone. 03-5788-4924  FAX. 03-5464-0631


___
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe