Commit 62dfa9c4 authored by Lucio De Re's avatar Lucio De Re Committed by Russ Cox

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
parent a4e08183
...@@ -543,6 +543,7 @@ cgen_shift(int op, int bounded, Node *nl, Node *nr, Node *res) ...@@ -543,6 +543,7 @@ cgen_shift(int op, int bounded, Node *nl, Node *nr, Node *res)
Type *tr; Type *tr;
uvlong sc; uvlong sc;
USED(bounded);
if(nl->type->width > 4) if(nl->type->width > 4)
fatal("cgen_shift %T", nl->type); fatal("cgen_shift %T", nl->type);
......
...@@ -207,7 +207,6 @@ regopt(Prog *firstp) ...@@ -207,7 +207,6 @@ regopt(Prog *firstp)
return; return;
} }
r1 = R;
firstr = R; firstr = R;
lastr = R; lastr = R;
......
...@@ -913,6 +913,7 @@ asmb(void) ...@@ -913,6 +913,7 @@ asmb(void)
} }
phsh(pnote, sh); phsh(pnote, sh);
} }
USED(resoff);
elfphload(&segtext); elfphload(&segtext);
elfphload(&segdata); elfphload(&segdata);
......
...@@ -536,6 +536,7 @@ addexcept(IMAGE_SECTION_HEADER *text) ...@@ -536,6 +536,7 @@ addexcept(IMAGE_SECTION_HEADER *text)
uvlong n; uvlong n;
Sym *sym; Sym *sym;
USED(text);
if(thechar != '6') if(thechar != '6')
return; return;
......
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