diff -r bb28fe19fe44 sys/src/cmd/cc/dcl.c --- a/sys/src/cmd/cc/dcl.c Mon Aug 19 16:42:20 2019 +0200 +++ b/sys/src/cmd/cc/dcl.c Wed Aug 21 11:51:58 2019 -0700 @@ -346,6 +346,13 @@ if(a->type == T) return Z; + if(a->op == OADD){ + if(a->left->op == OADDR && a->right->op == OCONST){ + nod = *a->left; + nod->left->xoffset += a->right->vconst; + a = &l; + } + } if(a->op == OCONST) { if(vconst(a) && t->etype == TIND && a->type && a->type->etype != TIND){ diag(a, "initialize pointer to an integer: %s", s->name);