Commit 4a3ce5f1 authored by Ken Thompson's avatar Ken Thompson

sigt_int

R=r
OCL=18030
CL=18030
parent 89f341db
...@@ -616,12 +616,10 @@ dumpsigt(void) ...@@ -616,12 +616,10 @@ dumpsigt(void)
for(d=signatlist; d!=D; d=d->forw) { for(d=signatlist; d!=D; d=d->forw) {
if(d->op != OTYPE) if(d->op != OTYPE)
continue; continue;
t = d->dtype; t = d->dtype;
et = t->etype; et = t->etype;
if(et == TINTER) if(et == TINTER)
continue; continue;
at.sym = signame(t, d->block); at.sym = signame(t, d->block);
if(at.sym == S) if(at.sym == S)
continue; continue;
......
...@@ -1650,7 +1650,7 @@ globalsig(Type *t) ...@@ -1650,7 +1650,7 @@ globalsig(Type *t)
return S; return S;
if(strcmp(t->sym->name, types[et]->sym->name) != 0) if(strcmp(t->sym->name, types[et]->sym->name) != 0)
return S; return S;
snprint(buf, sizeof(buf), "%s_%S", "sigt", t->sym); snprint(buf, sizeof(buf), "%s_%S", "sigt", types[simtype[et]]->sym);
out: out:
s = pkglookup(buf, glob); s = pkglookup(buf, glob);
......
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