diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-03 18:45:45 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-03 18:45:45 +0000 |
| commit | fe87e8a4f76a04a3c8312dc83f89459cc134b435 (patch) | |
| tree | 47df9267828bec6db6a4ec11ac55555aacd46335 | |
| parent | 40c4a30322b2c463604db38bfe9e5553f893dc81 (diff) | |
| download | ppe42-gcc-fe87e8a4f76a04a3c8312dc83f89459cc134b435.tar.gz ppe42-gcc-fe87e8a4f76a04a3c8312dc83f89459cc134b435.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31777 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 ba8b6f66a1b..32fc2bd7d69 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 cce0a61ea49..c603be1d3e0 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; } |

