From 6e3faa28a050432e95b71ae0752903a43dc3268e Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Wed, 7 Nov 2012 07:47:14 -0600 Subject: [PATCH] BC: special-case padl for < 5.17 Do not try to access the three new newpadlx, padl_* methods, as older perls are missing the API: Perl_pad_new, PadlistARRAY() --- bytecode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bytecode.pl b/bytecode.pl index 9a01c046e..3f2e6350f 100644 --- a/bytecode.pl +++ b/bytecode.pl @@ -383,7 +383,7 @@ package B::Asmdata; $unsupp++ if $pver < $ver; # ver 10: skip if pvar lower than 10; } } - if (!$unsupp or $] >= 5.007) { + if (!$unsupp or ($] >= 5.007 and $insn !~ /padl/)) { $insn_name[$insn_num] = $insn; push @insndata, [$insn_num, $unsupp, $insn, $lvalue, $rvalcast, $argtype, $flags]; # Find the next unused instruction number