]> gcc.gnu.org Git - gcc.git/commitdiff
javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
authorTom Tromey <tromey@cygnus.com>
Mon, 9 Aug 1999 21:14:12 +0000 (21:14 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 9 Aug 1999 21:14:12 +0000 (21:14 +0000)
* javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
(WORDS_TO_LONG): Likewise.
(WORDS_TO_DOUBLE): Likewise.

From-SVN: r28630

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

index 73cc8629142e59204cb7b7222dd072e63bc19b03..7cb3cd924ea719b514bac06b6f326bc14482f294 100644 (file)
@@ -1,3 +1,9 @@
+1999-08-09  Tom Tromey  <tromey@cygnus.com>
+
+       * javaop.h (WORD_TO_FLOAT): only inline if building with gcc.
+       (WORDS_TO_LONG): Likewise.
+       (WORDS_TO_DOUBLE): Likewise.
+
 1999-08-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (lang.o): Depend on $(RTL_H) $(EXPR_H).
index cce0a61ea496927bd58c0a541db2d2c705cec381..5f72e6a7f093c6ca0797f9923665c3a0a406076d 100644 (file)
@@ -102,14 +102,20 @@ union Word {
          | (BCODE[PC-2] << 8) | (BCODE[PC-1]))))
 #endif
 
-static inline jfloat
+#ifdef __GNUC__
+__inline
+#endif
+static jfloat
 WORD_TO_FLOAT(jword w)
 { union Word wu;
   wu.i = w;
   return wu.f;
 } 
 
-static inline jlong
+#ifdef __GNUC__
+__inline
+#endif
+static jlong
 WORDS_TO_LONG(jword hi, jword lo)
 {
   return ((jlong) hi << 32) | ((jlong)lo & (((jlong)1 << 32) -1));
@@ -121,7 +127,10 @@ union DWord {
   jword w[2];
 };
 
-static inline jdouble
+#ifdef __GNUC__
+__inline
+#endif
+static jdouble
 WORDS_TO_DOUBLE(jword hi, jword lo)
 { union DWord wu;
   wu.l = WORDS_TO_LONG(hi, lo);
This page took 0.073623 seconds and 5 git commands to generate.