summaryrefslogtreecommitdiff
path: root/src/cmd/5l/span.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/5l/span.c')
-rw-r--r--src/cmd/5l/span.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cmd/5l/span.c b/src/cmd/5l/span.c
index eb79f6b5a..2e1232a1a 100644
--- a/src/cmd/5l/span.c
+++ b/src/cmd/5l/span.c
@@ -97,8 +97,6 @@ span(void)
bflag = 0;
c = INITTEXT;
- op = nil;
- p = nil;
otxt = c;
for(cursym = textp; cursym != nil; cursym = cursym->next) {
p = cursym->text;
@@ -224,7 +222,6 @@ span(void)
bp = cursym->p;
for(p = p->link; p != P; p = p->link) {
- curp = p;
pc = p->pc;
curp = p;
o = oplook(p);
@@ -419,7 +416,7 @@ symaddr(Sym *s)
return 0;
case STEXT:
- case SELFDATA:
+ case SELFROSECT:
case SRODATA:
case SDATA:
case SBSS:
@@ -463,8 +460,6 @@ aclass(Adr *a)
print("%D\n", a);
return C_GOK;
}
- s = a->sym;
- t = s->type;
instoffset = 0; // s.b. unused but just in case
return C_ADDR;
@@ -520,8 +515,6 @@ aclass(Adr *a)
switch(a->name) {
case D_EXTERN:
case D_STATIC:
- s = a->sym;
- t = s->type;
instoffset = 0; // s.b. unused but just in case
return C_ADDR;
}
@@ -556,7 +549,6 @@ aclass(Adr *a)
s = a->sym;
if(s == S)
break;
- t = s->type;
instoffset = 0; // s.b. unused but just in case
return C_LCON;