[kaffe] SuperH header fix
TOMO sasaki
tomo@livedoor.jp
Tue Mar 30 20:21:02 2004
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.000000000 +0900
+++ kaffe/config/superh/common.h 2004-03-31 12:43:08.000000000 +0900
@@ -15,6 +15,9 @@
#ifndef __superh_common_h
#define __superh_common_h
+/* The SuperH never aligns to more than a 4 byte boundary. */
+#define ALIGNMENT_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.000000000 +0900
+++ kaffe/config/superh/linux/md.h 2004-03-31 12:42:04.000000000 +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 <tomo@livedoor.jp>
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