[kaffe] CVS kaffe (robilad): Removed ALIGN_CODEPC macro

Kaffe CVS cvs-commits at kaffe.org
Thu Jan 20 15:35:27 PST 2005


PatchSet 5881 
Date: 2005/01/20 23:27:48
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Removed ALIGN_CODEPC macro

2005-01-20  Kiyo Inaba  <inaba at src.ricoh.co.jp>

        * kaffe/kaffevm/jit/funcs.c,
        kaffe/kaffevm/jit3/funcs.c: Remove unused macro 'ALIGN' or
        'ALIGN_CODEPC'. The former is not compatible with OpenBSD
        anyway.
        * FAQ/FAQ.jit3: Update description of ?OUT macro and remove
        description of ALIGN_CODEPC.

Members: 
	ChangeLog:1.3422->1.3423 
	FAQ/FAQ.jit3:1.2->1.3 
	kaffe/kaffevm/jit/funcs.c:1.8->1.9 
	kaffe/kaffevm/jit3/funcs.c:1.16->1.17 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3422 kaffe/ChangeLog:1.3423
--- kaffe/ChangeLog:1.3422	Thu Jan 20 23:19:16 2005
+++ kaffe/ChangeLog	Thu Jan 20 23:27:48 2005
@@ -1,3 +1,12 @@
+2005-01-20  Kiyo Inaba  <inaba at src.ricoh.co.jp>
+
+	* kaffe/kaffevm/jit/funcs.c,
+	kaffe/kaffevm/jit3/funcs.c: Remove unused macro 'ALIGN' or
+	'ALIGN_CODEPC'. The former is not compatible with OpenBSD
+	anyway.
+	* FAQ/FAQ.jit3: Update description of ?OUT macro and remove
+	description of ALIGN_CODEPC.
+
 2005-01-20  Dalibor Topic  <robilad at kaffe.org>
 
 	* config/arm/linux/config.frag (CFLAGS):
Index: kaffe/FAQ/FAQ.jit3
diff -u kaffe/FAQ/FAQ.jit3:1.2 kaffe/FAQ/FAQ.jit3:1.3
--- kaffe/FAQ/FAQ.jit3:1.2	Wed Jun 25 23:09:14 2003
+++ kaffe/FAQ/FAQ.jit3	Thu Jan 20 23:27:51 2005
@@ -182,14 +182,11 @@
 
     CODEPC - The current index into codeblock.
 
-    OUT, BOUT, WOUT, LOUT, QOUT - Macros that resolve to a type lvalue
-    and automatically increment the CODEPC value.  For example, using
-    "LOUT = 0x45" in the architecture defs file will put the 32 bit
-    value "0x45" into the current position in the code block and
-    increment CODEPC by four.
-
-    ALIGN_CODEPC(byte) - A macro that aligns the CODEPC to the given
-    value.
+    OUT, BOUT, WOUT, LOUT, QOUT - Macros that store values given by
+    arguments into the current position and automatically increment
+    the CODEPC value.  For example, using "LOUT(0x45)" in the
+    architecture defs file will put the 32 bit value "0x45" into the
+    current position in the code block and increment CODEPC by four.
 
   kaffe/kaffevm/jit3/icode.c - The implementation of the intermediate
   functions.  These functions generate "sequence" structures that
Index: kaffe/kaffe/kaffevm/jit/funcs.c
diff -u kaffe/kaffe/kaffevm/jit/funcs.c:1.8 kaffe/kaffe/kaffevm/jit/funcs.c:1.9
--- kaffe/kaffe/kaffevm/jit/funcs.c:1.8	Mon Dec 27 16:09:46 2004
+++ kaffe/kaffe/kaffevm/jit/funcs.c	Thu Jan 20 23:27:51 2005
@@ -29,11 +29,6 @@
 #undef	define_insn
 #define	define_insn(n, i) void i (sequence* s)
 
-#define ALIGN(byte)							\
-	(CODEPC = (CODEPC % (byte)					\
-		   ? CODEPC + (byte) - (CODEPC % (byte))		\
-		   : CODEPC))
-
 #if defined(KAFFE_VMDEBUG)
 /*
  * Print any labels that refer to the current address.
Index: kaffe/kaffe/kaffevm/jit3/funcs.c
diff -u kaffe/kaffe/kaffevm/jit3/funcs.c:1.16 kaffe/kaffe/kaffevm/jit3/funcs.c:1.17
--- kaffe/kaffe/kaffevm/jit3/funcs.c:1.16	Mon Dec 27 16:09:48 2004
+++ kaffe/kaffe/kaffevm/jit3/funcs.c	Thu Jan 20 23:27:51 2005
@@ -30,11 +30,6 @@
 nativecode* codeblock;
 uintp CODEPC;
 
-#define ALIGN_CODEPC(byte)						\
-	(CODEPC = (CODEPC % (byte)					\
-		   ? CODEPC + (byte) - (CODEPC % (byte))		\
-		   : CODEPC))
-
 #if defined(KAFFE_VMDEBUG)
 /*
  * Print any labels that refer to the current address.




More information about the kaffe mailing list