diff options
author | Scott Bambrough <scottb@netwinder.org> | 2000-02-03 18:45:45 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-02-03 18:45:45 +0000 |
commit | 2c2f0e546b8b1b1f2f2f6ef4668adf44fa5e9164 (patch) | |
tree | 47df9267828bec6db6a4ec11ac55555aacd46335 /gcc/java | |
parent | ef2aac99d4773bb764fa96a827c2b1d590433b58 (diff) | |
download | gcc-2c2f0e546b8b1b1f2f2f6ef4668adf44fa5e9164.zip gcc-2c2f0e546b8b1b1f2f2f6ef4668adf44fa5e9164.tar.gz gcc-2c2f0e546b8b1b1f2f2f6ef4668adf44fa5e9164.tar.bz2 |
javaop.h (WORDS_TO_DOUBLE): Allow WORDS_TO_DOUBLE to assemble doubles correctly when...
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.
From-SVN: r31777
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/javaop.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index ba8b6f6..32fc2bd 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 diff --git a/gcc/java/javaop.h b/gcc/java/javaop.h index cce0a61..c603be1 100644 --- a/gcc/java/javaop.h +++ b/gcc/java/javaop.h @@ -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; } |