Branch: refs/heads/yves/fix_setjmp_warning_doeval_compile
Home: https://github.com/Perl/perl5
Commit: 3710db4fe308076be39de39daa20d8ade09215bd
https://github.com/Perl/perl5/commit/3710db4fe308076be39de39daa20d8ade09215bd
Author: Yves Orton <[email protected]>
Date: 2022-09-05 (Mon, 05 Sep 2022)
Changed paths:
M pp_ctl.c
Log Message:
-----------
pp_ctl.c - move JMPENV_PUSH to a function similar to S_try_yyparse
This creates S_try_run_unitcheck(), which is pretty similar to
S_try_yyparse(). Both of these functions are private to pp_ctl.c
and not listed in embed.c and are used to trap setjmp/longjmp
calls.
This fixes a cryptic warning about a variable being used across
setjmp in pp_ctl.c doeval_compile, which turns out to be evalcv.
By wrapping the JMPENV_PUSH logic in a light wrapper these issues
are moved one layer down the stack and avoided.