link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass on INTERP...
authorAndrew Haley <aph@redhat.com>
Sat, 27 Nov 2004 12:37:32 +0000 (12:37 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Sat, 27 Nov 2004 12:37:32 +0000 (12:37 +0000)
2004-11-27  Andrew Haley  <aph@redhat.com>

* link.cc (ensure_class_linked): Conditionally compile
_Jv_IsInterpretedClass on INTERPRETER.
(print_class_loaded): Likewise.
(wait_for_state): Likewise.

* include/jvm.h (ROUND): Move to here from include/java-interp.h.
* include/java-interp.h (ROUND): Remove.

From-SVN: r91375

libjava/ChangeLog
libjava/include/java-interp.h
libjava/include/jvm.h
libjava/link.cc

index 2589211ea0f838e9aefec3fa07d2af691b9e8ee5..529e2a25806740512dd48c6e6a20ae11d0a3adfd 100644 (file)
@@ -1,3 +1,12 @@
+2004-11-27  Andrew Haley  <aph@redhat.com>
+
+       * link.cc (ensure_class_linked): Conditionally compile
+       _Jv_IsInterpretedClass on INTERPRETER.
+       (print_class_loaded): Likewise.
+       (wait_for_state): Likewise.
+       * include/jvm.h (ROUND): Move to here from include/java-interp.h.
+       * include/java-interp.h (ROUND): Remove.
+
 2004-11-25  Tom Tromey  <tromey@redhat.com>
 
        * gnu/gcj/util/natDebug.cc (getField): Don't qualify name.
index c8e041ae3876ed9d8c8fa783c16e36de352ba128..4126c2f44cd036bca23174a702aa107141bedcd4 100644 (file)
@@ -45,9 +45,6 @@ int  _Jv_count_arguments (_Jv_Utf8Const *signature,
                          jboolean staticp = true);
 void _Jv_VerifyMethod (_Jv_InterpMethod *method);
 
-/* FIXME: this should really be defined in some more generic place */
-#define ROUND(V, A) (((((unsigned) (V))-1) | ((A)-1))+1)
-
 /* the interpreter is written in C++, primarily because it makes it easy for
  * the entire thing to be "friend" with class Class. */
 
index a3d06e7b09fec3c73c27860d4ace8ad7308d571f..ff2c9b1ec87ef10cb216e460d2b52711be020df4 100644 (file)
@@ -555,4 +555,7 @@ extern void (*_Jv_JVMPI_Notify_THREAD_START) (JVMPI_Event *event);
 extern void (*_Jv_JVMPI_Notify_THREAD_END) (JVMPI_Event *event);
 #endif
 
+/* FIXME: this should really be defined in some more generic place */
+#define ROUND(V, A) (((((unsigned) (V))-1) | ((A)-1))+1)
+
 #endif /* __JAVA_JVM_H__ */
index 39ade1481a3646f52dbcf3256f49cbdf082b7892..e611b766f24cd6323feb27ebfcc83e0263b1ea3f 100644 (file)
@@ -1422,7 +1422,9 @@ _Jv_Linker::ensure_class_linked (jclass klass)
       // a reference to a class we can't access.  This can validly
       // occur in an obscure case involving the InnerClasses
       // attribute.
+#ifdef INTERPRETER
       if (! _Jv_IsInterpretedClass (klass))
+#endif
        {
          // Resolve class constants first, since other constant pool
          // entries may rely on these.
@@ -1677,7 +1679,11 @@ _Jv_Linker::print_class_loaded (jclass klass)
 
   // We use a somewhat bogus test for the ABI here.
   char *abi;
+#ifdef INTERPRETER
   if (_Jv_IsInterpretedClass (klass))
+#else
+  if (false)
+#endif
     abi = "bytecode";
   else if (klass->state == JV_STATE_PRELOADING)
     abi = "BC-compiled";
@@ -1714,7 +1720,10 @@ _Jv_Linker::wait_for_state (jclass klass, int state)
   if (gcj::verbose_class_flag
       && (klass->state == JV_STATE_COMPILED
          || klass->state == JV_STATE_PRELOADING)
-      && ! _Jv_IsInterpretedClass (klass))
+#ifdef INTERPRETER
+      && ! _Jv_IsInterpretedClass (klass)
+#endif
+      )
     print_class_loaded (klass);
 
   try