Commit 7666f24a authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/gc, cmd/ld: fix build: remove unused var, use correct var in printf

Fixes #5924.

R=golang-dev, khr, rsc
CC=golang-dev
https://golang.org/cl/11606043
parent 48769bf5
......@@ -17,7 +17,7 @@ compile(Node *fn)
{
Plist *pl;
Node nod1, *n, *gcnod;
Prog *pfuncdata, *ptxt, *p, *p1;
Prog *ptxt, *p, *p1;
int32 lno;
Type *t;
Iter save;
......@@ -99,7 +99,7 @@ compile(Node *fn)
gcnod->class = PEXTERN;
nodconst(&nod1, types[TINT32], FUNCDATA_GC);
pfuncdata = gins(AFUNCDATA, &nod1, gcnod);
gins(AFUNCDATA, &nod1, gcnod);
for(t=curfn->paramfld; t; t=t->down)
gtrack(tracksym(t->type));
......
......@@ -2458,7 +2458,7 @@ pclntab(void)
for(p = cursym->text; p != P; p = p->link) {
if(p->as == AFUNCDATA) {
if((havefunc[p->from.offset/32]>>(p->from.offset%32))&1)
diag("multiple definitions for FUNCDATA $%d", i);
diag("multiple definitions for FUNCDATA $%d", p->from.offset);
havefunc[p->from.offset/32] |= 1<<(p->from.offset%32);
}
if(p->as == APCDATA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment