1
0
mirror of https://github.com/golang/go synced 2024-11-22 22:00:02 -07:00

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
This commit is contained in:
Ian Lance Taylor 2013-07-19 15:04:53 -07:00
parent 48769bf546
commit 7666f24a84
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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)