Commit 90c146f3 authored by David du Colombier's avatar David du Colombier

liblink: fix warnings on Plan 9

warning: /usr/go/src/liblink/asm5.c:720 set and not used: m
warning: /usr/go/src/liblink/asm5.c:807 set and not used: c

LGTM=minux
R=minux
CC=golang-codereviews
https://golang.org/cl/108570043
parent 125d1e92
......@@ -717,7 +717,6 @@ span5(Link *ctxt, LSym *cursym)
ctxt->curp = p;
p->pc = c;
o = oplook(ctxt, p);
m = o->size;
if(ctxt->headtype != Hnacl) {
m = o->size;
} else {
......@@ -800,12 +799,10 @@ span5(Link *ctxt, LSym *cursym)
}
*/
opc = p->pc;
if(ctxt->headtype != Hnacl) {
if(ctxt->headtype != Hnacl)
m = o->size;
} else {
else
m = asmoutnacl(ctxt, c, p, o, nil);
c = p->pc; // asmoutnacl might change pc for alignment
}
if(p->pc != opc) {
bflag = 1;
//print("%P pc changed %d to %d in iter. %d\n", p, opc, (int32)p->pc, times);
......
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