mirror of
https://github.com/golang/go
synced 2024-11-26 14:46:47 -07:00
cmd/5g, cmd/5l, cmd/ld: Small adjustments for the Plan 9 native tools
A few USED(xxx) additions and a couple of deletions of variable initialisations that go unused. One questionable correction, mirrored in 8l/asm.c, where the result of invocation of a function shouldn't be used. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6736054
This commit is contained in:
parent
a4e08183d5
commit
62dfa9c47d
@ -543,6 +543,7 @@ cgen_shift(int op, int bounded, Node *nl, Node *nr, Node *res)
|
||||
Type *tr;
|
||||
uvlong sc;
|
||||
|
||||
USED(bounded);
|
||||
if(nl->type->width > 4)
|
||||
fatal("cgen_shift %T", nl->type);
|
||||
|
||||
|
@ -207,7 +207,6 @@ regopt(Prog *firstp)
|
||||
return;
|
||||
}
|
||||
|
||||
r1 = R;
|
||||
firstr = R;
|
||||
lastr = R;
|
||||
|
||||
|
@ -913,6 +913,7 @@ asmb(void)
|
||||
}
|
||||
phsh(pnote, sh);
|
||||
}
|
||||
USED(resoff);
|
||||
|
||||
elfphload(&segtext);
|
||||
elfphload(&segdata);
|
||||
|
@ -536,6 +536,7 @@ addexcept(IMAGE_SECTION_HEADER *text)
|
||||
uvlong n;
|
||||
Sym *sym;
|
||||
|
||||
USED(text);
|
||||
if(thechar != '6')
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user