summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-07-20 17:41:18 -0700
committerRuss Cox <rsc@golang.org>2009-07-20 17:41:18 -0700
commit5a3adba2edfc2468c660d79c71477a02030d50d5 (patch)
tree6a2f9a7ab8fcdf94c14f9f0598e3233da7ef1cdb
parent2dc5e13661576906ba522a054ee0f2220813aff3 (diff)
downloadgolang-5a3adba2edfc2468c660d79c71477a02030d50d5.tar.gz
fix cut-and-paste bugs in error messages
R=ken OCL=31890 CL=31890
-rw-r--r--src/cmd/gc/sinit.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c
index e6f7375dc..e0581e64c 100644
--- a/src/cmd/gc/sinit.c
+++ b/src/cmd/gc/sinit.c
@@ -368,7 +368,7 @@ sli:
continue;
if(state != TS_start) {
dump("", r);
- fatal("initsub: ary-first and state=%d", state);
+ fatal("initsub: sli-first and state=%d", state);
}
state = TS_middle;
r->right = w;
@@ -380,7 +380,8 @@ sli:
if(r->left != N && sametmp(r->right, nam)) {
if(state != TS_middle) {
dump("", r);
- fatal("initsub: ary-last and state=%d", state);
+ setlineno(r);
+ fatal("initsub: sli-last and state=%d", state);
}
state = TS_end;
r->op = OEMPTY;
@@ -392,7 +393,7 @@ sli:
continue;
if(state != TS_middle) {
dump("", r);
- fatal("initsub: ary-middle and state=%d", state);
+ fatal("initsub: sli-middle and state=%d", state);
}
state = TS_middle;
r->left->left = w->left;
@@ -423,7 +424,7 @@ return;
continue;
if(state != TS_start) {
dump("", r);
- fatal("initsub: ary-first and state=%d", state);
+ fatal("initsub: map-first and state=%d", state);
}
state = TS_middle;
r->right = w;
@@ -435,7 +436,7 @@ return;
if(r->left != N && sametmp(r->right, nam)) {
if(state != TS_middle) {
dump("", r);
- fatal("initsub: ary-last and state=%d", state);
+ fatal("initsub: map-last and state=%d", state);
}
state = TS_end;
r->op = OEMPTY;