This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove OA_DANGEROUS from exit
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 20:45:13 +0000 (12:45 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Nov 2014 00:06:43 +0000 (16:06 -0800)
commit26812b4a900f5f8ec634ef9bb566822cb2b43975
treeb14cb5a9c04b3a6cd2ae2334b85f8d9c5a71babe
parentb31e13ff8bcc3b886cde8ce66380fc1032eaf4f9
Remove OA_DANGEROUS from exit

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.

exit usually doesn’t return.  When it fails, it returns a read-only
undef, so we don’t need temp copies for its sake.
opcode.h
regen/opcodes