aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-27 20:45:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-27 20:45:27 +0200
commit6083e965fac1b272f9ccb491902b24a24ea14122 (patch)
treed4454d50f6d0ebcf398111f811243876e2dc62d2 /profile.c
parentd36d6c02e9f3277850815f3bf5aec3b22fa54a21 (diff)
parentfc1410099d6ccbb72adb54ecffd0711348706ca4 (diff)
downloadegawk-6083e965fac1b272f9ccb491902b24a24ea14122.tar.gz
egawk-6083e965fac1b272f9ccb491902b24a24ea14122.tar.bz2
egawk-6083e965fac1b272f9ccb491902b24a24ea14122.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index c17d633c..62e39e93 100644
--- a/profile.c
+++ b/profile.c
@@ -373,8 +373,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, int flags)
break;
default:
- fprintf(stderr, "Got unexpected type %s\n", nodetype2str(m->type));
- cant_happen();
+ cant_happen("got unexpected type %s", nodetype2str(m->type));
}
switch (pc->opcode) {
@@ -581,7 +580,7 @@ cleanup:
case Op_K_delete_loop:
/* Efficency hack not in effect because of exec_count instruction */
- cant_happen();
+ cant_happen("unexpected opcode %s", opcode2str(pc->opcode));
break;
case Op_in_array:
@@ -1219,7 +1218,7 @@ cleanup:
break;
default:
- cant_happen();
+ cant_happen("unexpected opcode %s", opcode2str(pc->opcode));
}
if (pc == endp)