summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-08 13:06:14 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-08 16:06:44 -0800
commit9618b155493c2adb474aedec3492236f030cfc7f (patch)
tree0a478efb056c7356b979e061d214b1caaee0d7d7
parent1062548aa8a260190f89d970b88ab8ffe0bb35b2 (diff)
downloadperl-9618b155493c2adb474aedec3492236f030cfc7f.tar.gz
kill is not OA_DANGEROUS
OA_DANGEROUS indicates that temporary copies may need to be made in list assignment, to handle things like: ($a, $b) = ($b, $a); In other words, an op type is flagged with OA_DANGEROUS if its return values could occur elsewhere on the stack. kill only ever returns a target unused elsewhere, so it does not necessitate temp copies in list assignment.
-rw-r--r--opcode.h2
-rw-r--r--regen/opcodes2
2 files changed, 2 insertions, 2 deletions
diff --git a/opcode.h b/opcode.h
index e116becabe..ee31779130 100644
--- a/opcode.h
+++ b/opcode.h
@@ -2044,7 +2044,7 @@ EXTCONST U32 PL_opargs[] = {
0x0001141c, /* waitpid */
0x0002941d, /* system */
0x0002941d, /* exec */
- 0x0000245d, /* kill */
+ 0x0000241d, /* kill */
0x0000001c, /* getppid */
0x00009b1c, /* getpgrp */
0x0009941c, /* setpgrp */
diff --git a/regen/opcodes b/regen/opcodes
index ef418a5636..2237f03c3f 100644
--- a/regen/opcodes
+++ b/regen/opcodes
@@ -443,7 +443,7 @@ wait wait ck_null isT0
waitpid waitpid ck_fun isT@ S S
system system ck_exec imsT@ S? L
exec exec ck_exec imsT@ S? L
-kill kill ck_fun dimsT@ L
+kill kill ck_fun imsT@ L
getppid getppid ck_null isT0
getpgrp getpgrp ck_fun isT% S?
setpgrp setpgrp ck_fun isT@ S? S?