summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-08-20 12:21:09 +0100
committerDavid Mitchell <davem@iabyn.com>2017-10-31 15:31:26 +0000
commitf802a8256358e1dd0719a551da86078fe5d1c5c0 (patch)
tree30103d95066e66809755c7c4668e4f4026d5c807 /regen
parentab340fffd3aab332a1b31d7cf502274d67d1d4a5 (diff)
downloadperl-f802a8256358e1dd0719a551da86078fe5d1c5c0.tar.gz
regen/opcode.pl: display duplicate bit name
change this error message: addbits(): bit 4 of multiconcat already specified at ... to addbits(): bit 4 of multiconcat already specified (OPpTARGET_MY) at ...
Diffstat (limited to 'regen')
-rwxr-xr-xregen/opcode.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/regen/opcode.pl b/regen/opcode.pl
index 9aedc59347..d1c0faf6dc 100755
--- a/regen/opcode.pl
+++ b/regen/opcode.pl
@@ -247,7 +247,7 @@ sub ::addbits {
my $flag_name = shift @args;
my $flag_label = shift @args;
add_label($flag_name, $flag_label);
- croak "addbits(): bit $bits of $op already specified"
+ croak "addbits(): bit $bits of $op already specified ($FLAGS{$op}{$bits})"
if defined $FLAGS{$op}{$bits};
$FLAGS{$op}{$bits} = $flag_name;
add_define($flag_name, (1 << $bits));
@@ -344,7 +344,7 @@ sub ::addbits {
}
for my $bit ($bitmin..$bitmax) {
- croak "addbits(): bit $bit of $op already specified"
+ croak "addbits(): bit $bit of $op already specified ($FLAGS{$op}{$bit})"
if defined $FLAGS{$op}{$bit};
$FLAGS{$op}{$bit} = $BITFIELDS{$id};
}