OSDN Git Service

2000-01-31 Scott Bambrough <scottb@netwinder.org>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Feb 2000 18:45:45 +0000 (18:45 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Feb 2000 18:45:45 +0000 (18:45 +0000)
* gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is
defined to be 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31777 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/javaop.h

index ba8b6f6..32fc2bd 100644 (file)
@@ -1,3 +1,9 @@
+2000-01-31  Scott Bambrough  <scottb@netwinder.org>
+
+       * gcc/java/javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to
+       assemble doubles correctly when HOST_FLOAT_WORDS_BIG_ENDIAN is
+       defined to be 1.
+
 2000-02-03  Tom Tromey  <tromey@cygnus.com>
 
        * Make-lang.in (java.mostlyclean): Remove executables in
index cce0a61..c603be1 100644 (file)
@@ -124,7 +124,11 @@ union DWord {
 static inline jdouble
 WORDS_TO_DOUBLE(jword hi, jword lo)
 { union DWord wu;
+#if (1 == HOST_FLOAT_WORDS_BIG_ENDIAN)
+  wu.l = WORDS_TO_LONG(lo, hi);
+#else
   wu.l = WORDS_TO_LONG(hi, lo);
+#endif
   return wu.d;
 }