summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGerard Goossen <gerard@tty.nl>2009-10-29 12:27:49 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2009-11-06 14:16:27 +0100
commitbb4c52e023e0fcade469e46e9a1d5245ff44f3f2 (patch)
tree70d31b8d5045c7af391d3b1a8a98054d96902263 /pp_ctl.c
parent45a2d9782bd1c90e53c52dacd30d9b185db62239 (diff)
downloadperl-bb4c52e023e0fcade469e46e9a1d5245ff44f3f2.tar.gz
move JMPENV_JUMP to die_where and mark it as "noreturn"
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index ce60ea0375..06a0f7389a 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1543,7 +1543,7 @@ Perl_qerror(pTHX_ SV *err)
++PL_parser->error_count;
}
-OP *
+void
Perl_die_where(pTHX_ SV *msv)
{
dVAR;
@@ -1632,14 +1632,15 @@ Perl_die_where(pTHX_ SV *msv)
*msg ? msg : "Unknown error\n");
}
assert(CxTYPE(cx) == CXt_EVAL);
- return cx->blk_eval.retop;
+ PL_restartop = cx->blk_eval.retop;
+ JMPENV_JUMP(3);
+ /* NOTREACHED */
}
}
write_to_stderr( msv ? msv : ERRSV );
my_failure_exit();
/* NOTREACHED */
- return 0;
}
PP(pp_xor)