aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-03-30 19:10:17 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-03-30 19:10:17 +0000
commit05411ecfe5ef571b2a91fdba16a798a70ce7be4a (patch)
treec84b514d48a373f326b2b25384b05311d4a9b093 /gcc
parent14c78e9b16c644659cbe8c83cc598b49ca30742c (diff)
downloadgcc-05411ecfe5ef571b2a91fdba16a798a70ce7be4a.zip
gcc-05411ecfe5ef571b2a91fdba16a798a70ce7be4a.tar.gz
gcc-05411ecfe5ef571b2a91fdba16a798a70ce7be4a.tar.bz2
gjavah.c (D_NAN_MASK): Only define as word-reversed when HOST_FLOAT_WORDS_BIG_ENDIAN and...
* gjavah.c (D_NAN_MASK): Only define as word-reversed when HOST_FLOAT_WORDS_BIG_ENDIAN and HOST_WORDS_BIG_ENDIAN disagree. From-SVN: r32832
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/gjavah.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 0ab7edb..f46411a 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-30 Tom Tromey <tromey@cygnus.com>
+
+ * gjavah.c (D_NAN_MASK): Only define as word-reversed when
+ HOST_FLOAT_WORDS_BIG_ENDIAN and HOST_WORDS_BIG_ENDIAN disagree.
+
2000-03-28 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse-scan.y (pop_class_context): Reset `inner_qualifier_length'
diff --git a/gcc/java/gjavah.c b/gcc/java/gjavah.c
index 769eb77..41caf5c 100644
--- a/gcc/java/gjavah.c
+++ b/gcc/java/gjavah.c
@@ -203,7 +203,7 @@ static int decompiled = 0;
/* Some useful constants. */
#define F_NAN_MASK 0x7f800000
-#if (1 == HOST_FLOAT_WORDS_BIG_ENDIAN)
+#if (1 == HOST_FLOAT_WORDS_BIG_ENDIAN) && ! defined (HOST_WORDS_BIG_ENDIAN)
#define D_NAN_MASK 0x000000007ff00000LL
#else
#define D_NAN_MASK 0x7ff0000000000000LL