Changes:
- $Id: inline.c 4662 2006-03-21 00:13:45Z edwin $
+ $Id: inline.c 4670 2006-03-22 01:22:11Z edwin $
*/
else {
/* this stack slot it in the most recent chunk */
assert(curreloc);
- DOLOG( printf("\t\t\toffset %d\n",curreloc) );
+ DOLOG( printf("\t\t\toffset %d\n",(int)curreloc) );
return (stackptr) ((u1*)o_link + curreloc);
}
}
assert(iln);
+ n_bptr = NULL;
nextcall = iln->children;
/* set memory cursors */
if (o_bptr->flags < BBREACHED) {
DOLOG(
- printf("skipping old L%03d (flags=%d,type=%d,os=%p,oid=%d,ois=%p,cursor=%d,curreloc=%d,callerstack=%d) of ",
+ printf("skipping old L%03d (flags=%d,type=%d,os=%p,oid=%d,ois=%p,cursor=%d,callerstack=%d) of ",
o_bptr->debug_nr,o_bptr->flags,o_bptr->type,
(void*)o_bptr->stack,o_bptr->indepth,(void*)o_bptr->instack,
- DEBUG_SLOT(iln->n_inlined_stack_cursor),curreloc,
+ DEBUG_SLOT(iln->n_inlined_stack_cursor),
DEBUG_SLOT(iln->n_callerstack));
method_println(iln->m);
);
o_iptr = o_bptr->iinstr;
DOLOG(
- printf("rewriting old L%03d (flags=%d,type=%d,os=%p,oid=%d,ois=%p,cursor=%d,curreloc=%d,callerstack=%d) of ",
+ printf("rewriting old L%03d (flags=%d,type=%d,os=%p,oid=%d,ois=%p,cursor=%d,callerstack=%d) of ",
o_bptr->debug_nr,o_bptr->flags,o_bptr->type,
(void*)o_bptr->stack,o_bptr->indepth,(void*)o_bptr->instack,
- DEBUG_SLOT(iln->n_inlined_stack_cursor),curreloc,
+ DEBUG_SLOT(iln->n_inlined_stack_cursor),
DEBUG_SLOT(iln->n_callerstack));
method_println(iln->m);
printf("o_instack: ");debug_dump_stack(o_bptr->instack);printf("\n");
/* calculate the stack element relocation */
curreloc = (u1*)iln->n_inlined_stack_cursor - (u1*)o_bptr->stack;
- DOLOG( printf("curreloc <- %d = %p - %p\n",curreloc,(void*)iln->n_inlined_stack_cursor,(void*)(u1*)o_bptr->stack) );
+ DOLOG( printf("curreloc <- %d = %p - %p\n",(int)curreloc,(void*)iln->n_inlined_stack_cursor,(void*)(u1*)o_bptr->stack) );
o_nexttorewrite = o_bptr->stack;
o_lasttorewrite = o_bptr->stack-1;
printf("resuming old L%03d (flags=%d,type=%d,os=%p,oid=%d,ois=%p,cursor=%d,curreloc=%d,callerstack=%d) of ",
o_bptr->debug_nr,o_bptr->flags,o_bptr->type,
(void*)o_bptr->stack,o_bptr->indepth,(void*)o_bptr->instack,
- DEBUG_SLOT(iln->n_inlined_stack_cursor),curreloc,
+ DEBUG_SLOT(iln->n_inlined_stack_cursor),(int)curreloc,
DEBUG_SLOT(iln->n_callerstack));
method_println(iln->m);
);
}
/* end of basic blocks */
- if (!iln->depth) {
+ if (!iln->depth && n_bptr) {
n_bptr->next = NULL;
}
#include <ctype.h>
-#define DEBUG_SLOT(slot) ((slot) ? ((slot) - iln->ctx->n_debug_stackbase) : (-1))
+#define DEBUG_SLOT(slot) ((int)((slot) ? ((slot) - iln->ctx->n_debug_stackbase) : (-1)))
#if 0
printf("linenumbertable_entry %p: pc=%p line=%08x, lntsize=%d, looking for pc=%p\n",
else {
printf("%s[%d] L%03d %d-%d (ins %d,st %d) (sd=%d,cs=%p,lofs=%d) cum(ins %d,st %d,bb %d) ",
indent,iln->depth,iln->callerblock->debug_nr,
- iln->callerpc,iln->callerblock->iinstr - iln->parent->m->basicblocks->iinstr,
+ iln->callerpc,(int)(iln->callerblock->iinstr - iln->parent->m->basicblocks->iinstr),
iln->instructioncount,iln->stackcount,iln->n_callerstackdepth,
(void*)iln->n_callerstack,
iln->localsoffset,