]> Cypherpunks repositories - gostls13.git/commitdiff
fix runtime and compile regression
authorKai Backman <kaib@golang.org>
Tue, 18 Aug 2009 14:14:25 +0000 (07:14 -0700)
committerKai Backman <kaib@golang.org>
Tue, 18 Aug 2009 14:14:25 +0000 (07:14 -0700)
R=rsc
APPROVED=rsc
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=33434
CL=33452

src/cmd/5g/ggen.c
src/cmd/5g/gobj.c

index 337f5f8a0e826503d3f224fe593b65b451cfb32b..13083c3d862f655e3b38ba0d30c6fa69e9f60489 100644 (file)
@@ -167,7 +167,7 @@ cgen_callinter(Node *n, Node *res, int proc)
 //             i = &tmpi;
 //     }
 
-//     gen(n->right);                  // args
+//     genlist(n->list);                       // args
 
 //     regalloc(&nodr, types[tptr], res);
 //     regalloc(&nodo, types[tptr], &nodr);
@@ -217,7 +217,7 @@ cgen_call(Node *n, int proc)
                cgen(n->left, &afun);
        }
 
-       gen(n->right);          // assign the args
+       genlist(n->list);               // assign the args
        t = n->left->type;
 
        setmaxarg(t);
index 47de270d0c9553b3814be9a2452a867e61c51df1..7c22780d3481f11b1e75f9b401dcdd540193ca1a 100644 (file)
@@ -353,9 +353,9 @@ datastring(char *s, int len, Addr *a)
        *a = ao;
 
        // only generate data the first time.
-       if(ao.sym->uniq)
+       if(ao.sym->flags & SymUniq)
                return;
-       ao.sym->uniq = 1;
+       ao.sym->flags |= SymUniq;
 
        data();
        for(w=0; w<len; w+=8) {
@@ -434,9 +434,9 @@ datagostring(Strlit *sval, Addr *a)
        }
 
        *a = ao;
-       if(ao.sym->uniq)
+       if(ao.sym->flags & SymUniq)
                return;
-       ao.sym->uniq = 1;
+       ao.sym->flags |= SymUniq;
 
        data();
        // DATA gostring, wp, $cstring