[kaffe] CVS kaffe (hkraemer): fix for doubles on big endian arm

Kaffe CVS cvs-commits at kaffe.org
Wed Nov 10 03:16:47 PST 2004


PatchSet 5428 
Date: 2004/11/10 11:12:29
Author: hkraemer
Branch: HEAD
Tag: (none) 
Log:
fix for doubles on big endian arm

Members: 
	ChangeLog:1.2977->1.2978 
	config/config-hacks.h:1.12->1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2977 kaffe/ChangeLog:1.2978
--- kaffe/ChangeLog:1.2977	Wed Nov 10 11:03:33 2004
+++ kaffe/ChangeLog	Wed Nov 10 11:12:29 2004
@@ -1,3 +1,10 @@
+2004-11-10  Helmer Kraemer  <hkraemer at freenet.de>
+
+	* config/config-hacks.h (DOUBLE_ORDER_OPPOSITE): only define
+	on little endian arm using fpa
+
+	Reported by: Jari Korva <jpkorva at iki.fi>
+	
 2004-11-10  Dalibor Topic  <robilad at kaffe.org>
 
 	* libraries/javalib/javax/imageio/spi/ServiceRegistry.java,
Index: kaffe/config/config-hacks.h
diff -u kaffe/config/config-hacks.h:1.12 kaffe/config/config-hacks.h:1.13
--- kaffe/config/config-hacks.h:1.12	Thu Feb 13 18:51:24 2003
+++ kaffe/config/config-hacks.h	Wed Nov 10 11:12:33 2004
@@ -68,14 +68,15 @@
 #define	HAVE_UNALIGNEDACCESS
 #endif
 
-/* ARM processors, in little endian mode, use a big endian word order for
- * doubles.  We define this constant to declare that the word order in a
- * 64 bit double is the opposite of the word order in a 64 bit int.
+/* On arm, word order of doubles is always big endian when
+ * using FPA. When using VFP, word order of doubles follows
+ * the word order of the memory system.
  *
- * If you change this definition, also change strtod("-0.0") check
- * in configure.in.
+ * Therefore, the word order of doubles is opposite to the
+ * word order of jlongs when using a little endian arm
+ * unless VFP is used.
  */
-#if defined(__arm__)
+#if defined(__ARMEL__) && !defined(__VFP_FP__)
 #define DOUBLE_ORDER_OPPOSITE
 #endif
 




More information about the kaffe mailing list