]> Cypherpunks repositories - gostls13.git/commitdiff
fix amd64 build
authorRuss Cox <rsc@golang.org>
Wed, 5 Aug 2009 07:11:24 +0000 (00:11 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 5 Aug 2009 07:11:24 +0000 (00:11 -0700)
R=ken
OCL=32771
CL=32771

src/cmd/6g/gobj.c

index 6199d2f2f01fce5b05729fb5c7859c086fe6fb36..9977b0ff15b34da9a4e3c7a1aae96f2113cc6737 100644 (file)
@@ -360,9 +360,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) {
@@ -440,9 +440,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