[kaffe] CVS kaffe (guilhem): Cygwin fix
Kaffe CVS
cvs-commits at kaffe.org
Sat Mar 18 09:54:09 PST 2006
PatchSet 7152
Date: 2006/03/18 17:40:16
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Cygwin fix
Members:
ChangeLog:1.4670->1.4671
config/i386/cygwin32/md.h:INITIAL->1.6
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4670 kaffe/ChangeLog:1.4671
--- kaffe/ChangeLog:1.4670 Thu Mar 16 20:50:14 2006
+++ kaffe/ChangeLog Sat Mar 18 17:40:16 2006
@@ -1,5 +1,10 @@
2006-03-16 Guilhem Lavaux <guilhem at kaffe.org>
+ * config/i386/cygwin32/md.h
+ (ALIGNMENT_OF_SIZE): Redefine it specifically for cygwin.
+
+2006-03-16 Guilhem Lavaux <guilhem at kaffe.org>
+
Fix bug #23
* libraries/clib/awt/nano-X/img.c
===================================================================
Checking out kaffe/config/i386/cygwin32/md.h
RCS: /home/cvs/kaffe/kaffe/config/i386/cygwin32/md.h,v
VERS: 1.6
***************
--- /dev/null Sun Aug 4 19:57:58 2002
+++ kaffe/config/i386/cygwin32/md.h Sat Mar 18 17:54:09 2006
@@ -0,0 +1,43 @@
+/*
+ * i386/cygwin32/md.h
+ * Windows'95 (Cygnus GNU C) i386 configuration information.
+ *
+ * Copyright (c) 1996, 1997
+ * Transvirtual Technologies, Inc. All rights reserved.
+ *
+ * Copyright (c) 2003
+ * Kaffe.org contributors. See ChangeLog for details.
+ *
+ * See the file "license.terms" for information on usage and redistribution
+ * of this file.
+ */
+
+#ifndef __i386_cygwin32_md_h
+#define __i386_cygwin32_md_h
+
+/**/
+/* Thread handling */
+/**/
+#include "i386/common.h"
+#include "i386/threads.h"
+
+/* It looks like that cygwin/gcc is aligning uint64 on 8 bytes.
+ * Putting this here fixes kaffe behaviour.
+ */
+#undef ALIGNMENT_OF_SIZE
+#define ALIGNMENT_OF_SIZE(S) ((S) < 8 ? (S) : 8)
+
+/* Redefine the stack pointer offset */
+#undef SP_OFFSET
+#define SP_OFFSET 7
+
+#define SIGNAL_ARGS(sig, sc) int sig
+#define SIGNAL_CONTEXT_POINTER(scp) int scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (NULL)
+#define SIGNAL_PC(scp) (0)
+
+#if defined(TRANSLATOR)
+#include "jit-md.h"
+#endif
+
+#endif
More information about the kaffe
mailing list