* src/threads/posix/thread-posix.cpp: Eliminated some easy-to-fix or pointless compil...
authorStefan Ring <stefan@complang.tuwien.ac.at>
Tue, 14 Sep 2010 16:44:54 +0000 (18:44 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Tue, 14 Sep 2010 16:44:54 +0000 (18:44 +0200)
* src/threads/posix/thread-posix.hpp: Likewise.
* src/vm/class.cpp: Likewise.
* src/vm/classcache.cpp: Likewise.
* src/vm/jit/arm/codegen.c: Likewise.
* src/vm/jit/arm/md.c: Likewise.
* src/vm/jit/i386/md-atomic.hpp: Likewise.
* src/vm/jit/codegen-common.cpp: Likewise.
* src/vm/jit/trap.cpp: Likewise.
* src/vm/jit/verify/typeinfo.cpp: Likewise.
* src/vm/jit/x86_64/codegen.c: Likewise.
* src/vm/jit/x86_64/patcher.c: Likewise.
* src/vm/options.c: Likewise.
* src/vm/vm.cpp: Likewise.

14 files changed:
src/threads/posix/thread-posix.cpp
src/threads/posix/thread-posix.hpp
src/vm/class.cpp
src/vm/classcache.cpp
src/vm/jit/arm/codegen.c
src/vm/jit/arm/md.c
src/vm/jit/codegen-common.cpp
src/vm/jit/i386/md-atomic.hpp
src/vm/jit/trap.cpp
src/vm/jit/verify/typeinfo.cpp
src/vm/jit/x86_64/codegen.c
src/vm/jit/x86_64/patcher.c
src/vm/options.c
src/vm/vm.cpp

index 8e855c90bed103e4784f7f862137f0f72a42b5f5..e5aa1126bb982d7fc033f69d6b08caa22401464a 100644 (file)
@@ -1,6 +1,6 @@
 /* src/threads/posix/thread-posix.cpp - POSIX thread functions
 
 /* src/threads/posix/thread-posix.cpp - POSIX thread functions
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -583,8 +583,6 @@ void threads_impl_thread_free(threadobject *t)
 
 void threads_impl_preinit(void)
 {
 
 void threads_impl_preinit(void)
 {
-       int result;
-
        stopworldlock = new Mutex();
 
        /* initialize exit mutex and condition (on exit we join all
        stopworldlock = new Mutex();
 
        /* initialize exit mutex and condition (on exit we join all
@@ -601,7 +599,7 @@ void threads_impl_preinit(void)
 #endif
 
 #if !defined(HAVE___THREAD)
 #endif
 
 #if !defined(HAVE___THREAD)
-       result = pthread_key_create(&thread_current_key, NULL);
+       int result = pthread_key_create(&thread_current_key, NULL);
        if (result != 0)
                os::abort_errnum(result, "threads_impl_preinit: pthread_key_create failed");
 #endif
        if (result != 0)
                os::abort_errnum(result, "threads_impl_preinit: pthread_key_create failed");
 #endif
index 32503c4da1a20bb7395b27ff561811d5231694c2..e24f6cc2ee8fee6c75b1f7c1e6f61fb8a981211e 100644 (file)
@@ -256,7 +256,6 @@ inline static void thread_set_current(threadobject* t)
        result = pthread_setspecific(thread_current_key, t);
 
        if (result != 0)
        result = pthread_setspecific(thread_current_key, t);
 
        if (result != 0)
-#warning Use below method instead!
                //os::abort_errnum(result, "thread_set_current: pthread_setspecific failed");
                vm_abort("thread_set_current: pthread_setspecific failed");
 #endif
                //os::abort_errnum(result, "thread_set_current: pthread_setspecific failed");
                vm_abort("thread_set_current: pthread_setspecific failed");
 #endif
index 601ac6cfd7a235c89d9d12d39f4baf38dc235391..066bcfdcf4d220ef2401e4b321045c20b13ed4d4 100644 (file)
@@ -612,7 +612,7 @@ bool class_load_attributes(classbuffer *cb)
 
 static void class_freecpool(classinfo *c)
 {
 
 static void class_freecpool(classinfo *c)
 {
-       u4 idx;
+       int idx;
        u4 tag;
        void* info;
        
        u4 tag;
        void* info;
        
@@ -669,7 +669,7 @@ void* class_getconstant(classinfo *c, u4 pos, u4 ctype)
        /* check index and type of constantpool entry */
        /* (pos == 0 is caught by type comparison) */
 
        /* check index and type of constantpool entry */
        /* (pos == 0 is caught by type comparison) */
 
-       if ((pos >= c->cpcount) || (c->cptags[pos] != ctype)) {
+       if (((int) pos >= c->cpcount) || (c->cptags[pos] != ctype)) {
                exceptions_throw_classformaterror(c, "Illegal constant pool index");
                return NULL;
        }
                exceptions_throw_classformaterror(c, "Illegal constant pool index");
                return NULL;
        }
@@ -688,7 +688,7 @@ void* innerclass_getconstant(classinfo *c, u4 pos, u4 ctype)
 {
        /* invalid position in constantpool */
 
 {
        /* invalid position in constantpool */
 
-       if (pos >= c->cpcount) {
+       if ((int) pos >= c->cpcount) {
                exceptions_throw_classformaterror(c, "Illegal constant pool index");
                return NULL;
        }
                exceptions_throw_classformaterror(c, "Illegal constant pool index");
                return NULL;
        }
@@ -2104,7 +2104,7 @@ java_handle_t* class_get_enclosingmethod(classinfo *c)
 java_handle_objectarray_t* class_get_interfaces(classinfo *c)
 {
        classinfo* ic;
 java_handle_objectarray_t* class_get_interfaces(classinfo *c)
 {
        classinfo* ic;
-       u4         i;
+       int        i;
 
        if (!(c->state & CLASS_LINKED))
                if (!link_class(c))
 
        if (!(c->state & CLASS_LINKED))
                if (!link_class(c))
@@ -2380,13 +2380,13 @@ void class_classref_or_classinfo_println(classref_or_classinfo c)
 #if !defined(NDEBUG)
 void class_showconstantpool (classinfo *c) 
 {
 #if !defined(NDEBUG)
 void class_showconstantpool (classinfo *c) 
 {
-       u4 i;
+       int i;
        void* e;
 
        printf ("---- dump of constant pool ----\n");
 
        for (i=0; i<c->cpcount; i++) {
        void* e;
 
        printf ("---- dump of constant pool ----\n");
 
        for (i=0; i<c->cpcount; i++) {
-               printf ("#%d:  ", (int) i);
+               printf ("#%d:  ", i);
                
                e = c -> cpinfos [i];
                if (e) {
                
                e = c -> cpinfos [i];
                if (e) {
index 9023da15045778be679990f9f01536fd5ffb7d23..bb167636ac90b29b96d01088b733689a29bb9e2d 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/classcache.cpp - loaded class cache and loading constraints
 
 /* src/vm/classcache.cpp - loaded class cache and loading constraints
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -1338,7 +1338,7 @@ static s4 classcache_number_of_loaded_classes(void)
        classcache_name_entry  *en;
        classcache_class_entry *clsen;
        s4                      number;
        classcache_name_entry  *en;
        classcache_class_entry *clsen;
        s4                      number;
-       s4                      i;
+       u4                      i;
 
        /* initialize class counter */
 
 
        /* initialize class counter */
 
@@ -1399,7 +1399,7 @@ void classcache_foreach_loaded_class(classcache_foreach_functionptr_t func,
 {
        classcache_name_entry   *en;
        classcache_class_entry  *clsen;
 {
        classcache_name_entry   *en;
        classcache_class_entry  *clsen;
-       s4                       i;
+       u4                       i;
 
        CLASSCACHE_LOCK();
 
 
        CLASSCACHE_LOCK();
 
index 4a87bc94929db6f1850d72eee4ce31e8f9e63341..ffb27b03e691424c0527c3950002be762d20d9fb 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/arm/codegen.c - machine code generator for Arm
 
 /* src/vm/jit/arm/codegen.c - machine code generator for Arm
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -257,7 +257,6 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
        int32_t             disp;
 
        // Get required compiler data.
        int32_t             disp;
 
        // Get required compiler data.
-       codeinfo*     code = jd->code;
        codegendata*  cd   = jd->cd;
 
        /* the big switch */
        codegendata*  cd   = jd->cd;
 
        /* the big switch */
index 1fecb0a8355eb936529188f0b3f1149a45780dfa..4149a7eaadcacea2c96ca43a855ffdd39e9cd3e0 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/arm/md.c - machine dependent ARM functions
 
 /* src/vm/jit/arm/md.c - machine dependent ARM functions
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
    Copyright (C) 2009 Theobroma Systems Ltd.
 
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
    Copyright (C) 2009 Theobroma Systems Ltd.
 
@@ -224,7 +224,7 @@ bool md_trap_decode(trapinfo_t* trp, int sig, void* xpc, executionstate_t* es)
        case TRAP_SIGSEGV:
        {
                // Sanity check for load/store instruction.
        case TRAP_SIGSEGV:
        {
                // Sanity check for load/store instruction.
-#warning Implement this!
+               // FIXME Implement this!
 
                // Retrieve base address of load/store instruction.
                uintptr_t addr = es->intregs[(mcode >> 16) & 0x0f];
 
                // Retrieve base address of load/store instruction.
                uintptr_t addr = es->intregs[(mcode >> 16) & 0x0f];
index 6408466d760f4477f118fa81ef8e2484b7890c43..9b1dad8cdd3d5b9d443a96adca228a0d7e14a0a5 100644 (file)
@@ -996,7 +996,7 @@ s4 codegen_reg_of_dst(jitdata *jd, instruction *iptr, s4 tempregnum)
 bool codegen_emit(jitdata *jd)
 {
        varinfo*            var;
 bool codegen_emit(jitdata *jd)
 {
        varinfo*            var;
-       builtintable_entry* bte;
+       builtintable_entry* bte = 0;
        methoddesc*         md;
        int32_t             s1, s2, /*s3,*/ d;
        int32_t             fieldtype;
        methoddesc*         md;
        int32_t             s1, s2, /*s3,*/ d;
        int32_t             fieldtype;
@@ -1518,6 +1518,8 @@ bool codegen_emit(jitdata *jd)
                                        disp      = dseg_add_unique_address(cd, 0);
 
                                        pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
                                        disp      = dseg_add_unique_address(cd, 0);
 
                                        pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
+
+                                       fi = NULL;              /* Silence compiler warning */
                                }
                                else {
                                        fi        = iptr->sx.s23.s3.fmiref->p.field;
                                }
                                else {
                                        fi        = iptr->sx.s23.s3.fmiref->p.field;
@@ -1529,6 +1531,8 @@ bool codegen_emit(jitdata *jd)
                                                patcher_add_patch_ref(jd, PATCHER_initialize_class, fi->clazz, 0);
                                                PROFILE_CYCLE_START;
                                        }
                                                patcher_add_patch_ref(jd, PATCHER_initialize_class, fi->clazz, 0);
                                                PROFILE_CYCLE_START;
                                        }
+
+                                       pr = NULL;              /* Silence compiler warning */
                                }
 
 #if defined(USES_PATCHABLE_MEMORY_BARRIER)
                                }
 
 #if defined(USES_PATCHABLE_MEMORY_BARRIER)
@@ -1570,6 +1574,9 @@ bool codegen_emit(jitdata *jd)
                                        M_DLD(d, REG_ITMP1, 0);
                                        break;
 #endif
                                        M_DLD(d, REG_ITMP1, 0);
                                        break;
 #endif
+                               default:
+                                       // Silence compiler warning.
+                                       d = 0;
                                }
                                emit_store_dst(jd, iptr, d);
                                break;
                                }
                                emit_store_dst(jd, iptr, d);
                                break;
@@ -1593,6 +1600,8 @@ bool codegen_emit(jitdata *jd)
                                        disp      = dseg_add_unique_address(cd, 0);
 
                                        pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
                                        disp      = dseg_add_unique_address(cd, 0);
 
                                        pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
+
+                                       fi = NULL;              /* Silence compiler warning */
                                }
                                else {
                                        fi = iptr->sx.s23.s3.fmiref->p.field;
                                }
                                else {
                                        fi = iptr->sx.s23.s3.fmiref->p.field;
@@ -1604,6 +1613,8 @@ bool codegen_emit(jitdata *jd)
                                                patcher_add_patch_ref(jd, PATCHER_initialize_class, fi->clazz, 0);
                                                PROFILE_CYCLE_START;
                                        }
                                                patcher_add_patch_ref(jd, PATCHER_initialize_class, fi->clazz, 0);
                                                PROFILE_CYCLE_START;
                                        }
+
+                                       pr = NULL;              /* Silence compiler warning */
                                }
 
                                // XXX X86_64: Here We had this:
                                }
 
                                // XXX X86_64: Here We had this:
index 84f7b3df5e05b255aac0da4bf4a1936b1e3bb0f1..f1e875234a12b5b8fdaf505409d91e93ec623af7 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/i386/atomic.hpp - i386 atomic instructions
 
 /* src/vm/jit/i386/atomic.hpp - i386 atomic instructions
 
-   Copyright (C) 2008
+   Copyright (C) 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -67,7 +67,6 @@ inline uint32_t compare_and_swap(volatile uint32_t *p, uint32_t oldval, uint32_t
  */
 inline uint64_t compare_and_swap(volatile uint64_t *p, uint64_t oldval, uint64_t newval)
 {
  */
 inline uint64_t compare_and_swap(volatile uint64_t *p, uint64_t oldval, uint64_t newval)
 {
-#warning Should we use cmpxchg8b or a generic version?
        return Atomic::generic_compare_and_swap(p, oldval, newval);
 }
 
        return Atomic::generic_compare_and_swap(p, oldval, newval);
 }
 
index d3781e33fcd793936481f19f9b0b33dcdeca4249..e8bfb9beee61bad6a67be5bb287607ea40b44593 100644 (file)
@@ -231,8 +231,8 @@ void trap_handle(int sig, void *xpc, void *context)
        /* Get resulting exception (or pointer to compiled method). */
 
        java_handle_t* p;
        /* Get resulting exception (or pointer to compiled method). */
 
        java_handle_t* p;
-       void*          entry;
-       bool           was_patched;
+       void*          entry = 0;
+       bool           was_patched = false;
 #if defined(ENABLE_REPLACEMENT)
        bool           was_replaced;
 #endif
 #if defined(ENABLE_REPLACEMENT)
        bool           was_replaced;
 #endif
index 0e6f46dc831b0a608f1797f0437d732864247a2a..f4c2037fa0f8d82a83b44f5b8fea2d1b004c9c51 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/verify/typeinfo.c - type system used by the type checker
 
 /* src/vm/jit/verify/typeinfo.c - type system used by the type checker
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -2279,7 +2279,7 @@ typeinfo_inc_dimension(typeinfo_t *info)
 #define TYPEINFO_TEST_MAXDIM  10
 
 static void
 #define TYPEINFO_TEST_MAXDIM  10
 
 static void
-typeinfo_testrun(char *filename)
+typeinfo_testrun(const char *filename)
 {
     char buf[TYPEINFO_TEST_BUFLEN];
     char bufa[TYPEINFO_TEST_BUFLEN];
 {
     char buf[TYPEINFO_TEST_BUFLEN];
     char bufa[TYPEINFO_TEST_BUFLEN];
index 89f12c251cdbaa9183b87bcd0ba28715238a6876..3a4acd2ea61482646c34b3a4593e19de345d75de 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/x86_64/codegen.c - machine code generator for x86_64
 
 /* src/vm/jit/x86_64/codegen.c - machine code generator for x86_64
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -1507,6 +1507,8 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                                pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
 
 /*                             PROFILE_CYCLE_START; */
                                pr = patcher_add_patch_ref(jd, PATCHER_get_putstatic, uf, disp);
 
 /*                             PROFILE_CYCLE_START; */
+
+                               fi = NULL;              /* Silence compiler warning */
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
@@ -1521,6 +1523,8 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
 
                                        //PROFILE_CYCLE_START;
                                }
 
                                        //PROFILE_CYCLE_START;
                                }
+
+                               pr = NULL;              /* Silence compiler warning */
                        }
 
                        /* This approach is much faster than moving the field
                        }
 
                        /* This approach is much faster than moving the field
@@ -1561,6 +1565,8 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                                patcher_add_patch_ref(jd, PATCHER_get_putfield, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
                                patcher_add_patch_ref(jd, PATCHER_get_putfield, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
+
+                               fi = NULL;              /* Silence compiler warning */
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                        }
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
@@ -1587,6 +1593,9 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                                d = codegen_reg_of_dst(jd, iptr, REG_FTMP1);
                                M_DLD32(d, s1, disp);
                                break;
                                d = codegen_reg_of_dst(jd, iptr, REG_FTMP1);
                                M_DLD32(d, s1, disp);
                                break;
+                       default:
+                               // Silence compiler warning.
+                               d = 0;
                        }
                        emit_store_dst(jd, iptr, d);
                        break;
                        }
                        emit_store_dst(jd, iptr, d);
                        break;
@@ -1606,11 +1615,15 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                                pr = patcher_add_patch_ref(jd, PATCHER_get_putfield, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
                                pr = patcher_add_patch_ref(jd, PATCHER_get_putfield, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
+
+                               fi = NULL;              /* Silence compiler warning */
                        } 
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                                fieldtype = fi->type;
                                disp      = fi->offset;
                        } 
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                                fieldtype = fi->type;
                                disp      = fi->offset;
+
+                               pr = NULL;              /* Silence compiler warning */
                        }
 
                        /* implicit null-pointer check */
                        }
 
                        /* implicit null-pointer check */
@@ -1648,11 +1661,15 @@ void codegen_emit_instruction(jitdata* jd, instruction* iptr)
                                pr = patcher_add_patch_ref(jd, PATCHER_putfieldconst, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
                                pr = patcher_add_patch_ref(jd, PATCHER_putfieldconst, uf, 0);
 
 /*                             PROFILE_CYCLE_START; */
+
+                               fi = NULL;              /* Silence compiler warning */
                        } 
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                                fieldtype = fi->type;
                                disp      = fi->offset;
                        } 
                        else {
                                fi        = iptr->sx.s23.s3.fmiref->p.field;
                                fieldtype = fi->type;
                                disp      = fi->offset;
+
+                               pr = NULL;              /* Silence compiler warning */
                        }
 
                        /* implicit null-pointer check */
                        }
 
                        /* implicit null-pointer check */
index be4fd4e7a8c447f936875e22e0a07d59a280a5bf..2d394fff212ef8392a6c6dd7c30878fab9f9af03 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/jit/x86_64/patcher.c - x86_64 code patching functions
 
 /* src/vm/jit/x86_64/patcher.c - x86_64 code patching functions
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -87,9 +87,9 @@ static void patch_out_mfence(void *pc)
 
        assert((((uintptr_t) pc) & 3) < 2);
        if (((uintptr_t) pc) & 1)
 
        assert((((uintptr_t) pc) & 3) < 2);
        if (((uintptr_t) pc) & 1)
-               *p = *p & 0x000000ff | 0x001f0f00;
+               *p = (*p & 0x000000ff) | 0x001f0f00;
        else
        else
-               *p = *p & 0xff000000 | 0x00001f0f;
+               *p = (*p & 0xff000000) | 0x00001f0f;
 
        md_icacheflush(p, 4);
 }
 
        md_icacheflush(p, 4);
 }
index 2fc95f3468d08440c75d96479688a756c91a0720..f503ce6829c78cd958d273a3a8c10b98e7b06267 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/options.c - contains global options
 
 /* src/vm/options.c - contains global options
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -794,7 +794,7 @@ void options_xx(JavaVMInitArgs *vm_args)
                        file = fopen(filename, "w");
 
                        if (file == NULL)
                        file = fopen(filename, "w");
 
                        if (file == NULL)
-#warning Use below method instead!
+                               /* FIXME Use below method instead! */
                                //os::abort_errno("options_xx: fopen failed");
                                vm_abort("options_xx: fopen failed");
 
                                //os::abort_errno("options_xx: fopen failed");
                                vm_abort("options_xx: fopen failed");
 
index 70c0ae53c8f896e79e5872fdbe74bbccd4f1af4d..38b9d4e4c0ddf0fd3d0ceb11e8573fe3c52243ab 100644 (file)
@@ -1,6 +1,6 @@
 /* src/vm/vm.cpp - VM startup and shutdown functions
 
 /* src/vm/vm.cpp - VM startup and shutdown functions
 
-   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009
+   Copyright (C) 1996-2005, 2006, 2007, 2008, 2009, 2010
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
@@ -718,7 +718,7 @@ VM::VM(JavaVMInitArgs* vm_args)
           is smaller or equal than the assumption made in
           src/vm/class.hpp. */
 
           is smaller or equal than the assumption made in
           src/vm/class.hpp. */
 
-#warning FIXME We need to check the size of java.lang.Class!!!
+// FIXME We need to check the size of java.lang.Class!!!
 //     if (sizeof(java_lang_Class) > sizeof(dummy_java_lang_Class))
 //             vm_abort("vm_create: java_lang_Class structure is bigger than classinfo.object (%d > %d)", sizeof(java_lang_Class), sizeof(dummy_java_lang_Class));
 
 //     if (sizeof(java_lang_Class) > sizeof(dummy_java_lang_Class))
 //             vm_abort("vm_create: java_lang_Class structure is bigger than classinfo.object (%d > %d)", sizeof(java_lang_Class), sizeof(dummy_java_lang_Class));
 
@@ -1795,7 +1795,6 @@ int vm_destroy(JavaVM *vm)
        /* VM is gone. */
 
 //     _created = false;
        /* VM is gone. */
 
 //     _created = false;
-#warning Move to C++
 
        /* Everything is ok. */
 
 
        /* Everything is ok. */
 
@@ -1816,7 +1815,6 @@ void vm_exit(s4 status)
        /* signal that we are exiting */
 
 //     _exiting = true;
        /* signal that we are exiting */
 
 //     _exiting = true;
-#warning Move to C++
 
        assert(class_java_lang_System);
        assert(class_java_lang_System->state & CLASS_LOADED);
 
        assert(class_java_lang_System);
        assert(class_java_lang_System->state & CLASS_LOADED);