This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: S_fold_constants_eval can't be inlined
authorKarl Williamson <khw@cpan.org>
Tue, 10 Mar 2020 04:27:34 +0000 (22:27 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 11 Mar 2020 23:02:46 +0000 (17:02 -0600)
Because it uses setjmp, is what g++ says

op.c

diff --git a/op.c b/op.c
index 95670a3..a3ad215 100644 (file)
--- a/op.c
+++ b/op.c
@@ -5906,9 +5906,10 @@ S_op_integerize(pTHX_ OP *o)
 }
 
 /* This function exists solely to provide a scope to limit
-   setjmp/longjmp() messing with auto variables.
+   setjmp/longjmp() messing with auto variables.  It cannot be inlined because
+   it uses setjmp
  */
-PERL_STATIC_INLINE int
+STATIC int
 S_fold_constants_eval(pTHX) {
     int ret = 0;
     dJMPENV;