This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: _Jv_BuildGCDescr


I checked in this patch to fix the build when INTERPRETER isn't defined.

regards

Bryce.


2001-12-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

    * include/jvm.h (_Jv_BuildGCDescr): Declare unconditionally.
    * nogc.cc (_Jv_BuildGCDescr): Define unconditionally.

Index: nogc.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/nogc.cc,v
retrieving revision 1.12
diff -u -r1.12 nogc.cc
--- nogc.cc     2001/10/15 22:42:42     1.12
+++ nogc.cc     2001/12/19 01:50:51
@@ -19,13 +19,11 @@
 // Total amount of memory allocated.
 static long total = 0;
 
-#ifdef INTERPRETER
 void *
 _Jv_BuildGCDescr(jclass klass)
 {
   return 0;
 }
-#endif
 
 void *
 _Jv_AllocObj (jsize size, jclass klass)
Index: include/jvm.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/jvm.h,v
retrieving revision 1.49
diff -u -r1.49 jvm.h
--- jvm.h       2001/12/16 22:33:02     1.49
+++ jvm.h       2001/12/19 01:50:51
@@ -177,9 +177,7 @@
 /* Register a finalizer.  */
 void _Jv_RegisterFinalizer (void *object, _Jv_FinalizerFunc *method);
 /* Compute the GC descriptor for a class */
-#ifdef INTERPRETER
 void * _Jv_BuildGCDescr(jclass);
-#endif
 
 /* Allocate some unscanned, unmoveable memory.  Return NULL if out of
    memory.  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]