From 45a20ab721a513710138340faff3d59a31c3e01e Mon Sep 17 00:00:00 2001 From: forsyth Date: Mon, 3 Jun 2013 21:01:14 +0000 Subject: sync compilers with Plan 9 remove 1[acl] 2[acl] --- utils/6c/swt.c | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'utils/6c/swt.c') diff --git a/utils/6c/swt.c b/utils/6c/swt.c index b201c9ca..c0b4d844 100644 --- a/utils/6c/swt.c +++ b/utils/6c/swt.c @@ -9,7 +9,7 @@ swit1(C1 *q, int nc, long def, Node *n) if(nc < 5) { for(i=0; ival); gcmp(OEQ, n, q->val); patch(p, q->label); @@ -21,7 +21,7 @@ swit1(C1 *q, int nc, long def, Node *n) } i = nc / 2; r = q+i; - if(debug['W']) + if(debug['K']) print("case > %.8llux\n", r->val); gcmp(OGT, n, r->val); sp = p; @@ -30,7 +30,7 @@ swit1(C1 *q, int nc, long def, Node *n) patch(p, r->label); swit1(q, i, def, n); - if(debug['W']) + if(debug['K']) print("case < %.8llux\n", r->val); patch(sp, pc); swit1(r+1, nc-i-1, def, n); @@ -127,23 +127,6 @@ outstring(char *s, long n) return r; } -void -sextern(Sym *s, Node *a, long o, long w) -{ - long e, lw; - - for(e=0; efrom.offset += o+e; - p->from.scale = lw; - p->to.type = D_SCONST; - memmove(p->to.sval, a->cstring+e, lw); - } -} - void gextern(Sym *s, Node *a, long o, long w) { @@ -523,8 +506,8 @@ align(long i, Type *t, int op) long maxround(long max, long v) { - v += SZ_VLONG-1; + v = round(v, SZ_VLONG); if(v > max) - max = round(v, SZ_VLONG); + return v; return max; } -- cgit v1.2.3