aboutsummaryrefslogtreecommitdiff
path: root/libjava/link.cc
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2004-11-27 12:37:32 +0000
committerAndrew Haley <aph@gcc.gnu.org>2004-11-27 12:37:32 +0000
commit1daa567cf8e5d6c69e97021aac2a46281328d1ee (patch)
tree900597a6d50287ab3119dd427bda46b0a85dee9e /libjava/link.cc
parent02a854f97056ad1905dbb531e179ef1b0a254497 (diff)
downloadgcc-1daa567cf8e5d6c69e97021aac2a46281328d1ee.zip
gcc-1daa567cf8e5d6c69e97021aac2a46281328d1ee.tar.gz
gcc-1daa567cf8e5d6c69e97021aac2a46281328d1ee.tar.bz2
link.cc (ensure_class_linked): Conditionally compile _Jv_IsInterpretedClass on INTERPRETER.
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
Diffstat (limited to 'libjava/link.cc')
-rw-r--r--libjava/link.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/libjava/link.cc b/libjava/link.cc
index 39ade14..e611b76 100644
--- a/libjava/link.cc
+++ b/libjava/link.cc
@@ -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