staging broken with --enable-debugging-features
David Bélanger <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Enabling debugging on the staging version breaks it. There is one fix
do to in local_refs.c (see patch attached).
Before committing it, I want to compile and test, but I get many of these:
native.c:607: warning: ISO C forbids conversion of object pointer to
function pointer type
method->data.native_method->code =
(void (*)(void)) lt_dlsym (native_library->handle,
method->data.native_method->
short_name);
Any idea how to fix them?
Gentoo Linux/PowerPC, gcc 3.4.3.
David
---
David Bélanger
Web page: http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt
_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
local_refs.patch
(text/plain, 436 B)
Index: src/libsablevm/local_refs.c =================================================================== --- src/libsablevm/local_refs.c (revision 3150) +++ src/libsablevm/local_refs.c (working copy) @@ -284,7 +284,7 @@ _svmt_stack_frame *frame = env->stack.current_frame; -#ifdef _SABLEVM_REAL_LIFE_BROKENNESS +#if !defined(NDEBUG) || defined(_SABLEVM_REAL_LIFE_BROKENNESS) _svmt_method_info *method = frame->method; #endif