Index: src/pmc/continuation.pmc =================================================================== --- src/pmc/continuation.pmc (revision 41400) +++ src/pmc/continuation.pmc (working copy) @@ -187,7 +187,7 @@ cc->address = pos; cc->runloop_id = INTERP->current_runloop_id; - if (pos && (*pos == PARROT_OP_get_results_pc)) + if (pos && ((pos <= (cc->seg->base.data + cc->seg->base.size)) &&(*pos == PARROT_OP_get_results_pc))) cc->current_results = pos; else cc->current_results = NULL; Index: compilers/imcc/pcc.c =================================================================== --- compilers/imcc/pcc.c (revision 41400) +++ compilers/imcc/pcc.c (working copy) @@ -447,11 +447,6 @@ IMCC_debug(interp, DEBUG_IMC, "add sub ret - %I\n", tmp); insert_ins(unit, unit->last_ins, tmp); } - else if (STREQ(unit->last_ins->opname, "exit")) { - /* C builds RetContinuation pointing to next op_code. So insert some */ - Instruction *tmp = INS(interp, unit, "noop", NULL, regs, 0, 0, 0); - insert_ins(unit, unit->last_ins, tmp); - } } /* Index: t/compilers/imcc/imcpasm/opt0.t =================================================================== --- t/compilers/imcc/imcpasm/opt0.t (revision 41400) +++ t/compilers/imcc/imcpasm/opt0.t (working copy) @@ -86,7 +86,6 @@ _test: noop exit 0 - noop OUT ##############################