~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/cmd/8g/gobj.c

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        switch(a->type) {
95
95
 
96
96
        case D_BRANCH:
97
 
                if(a->branch == nil)
 
97
                if(a->u.branch == nil)
98
98
                        fatal("unpatched branch");
99
 
                a->offset = a->branch->loc;
 
99
                a->offset = a->u.branch->loc;
100
100
 
101
101
        default:
102
102
                t |= T_TYPE;
137
137
        if(t & T_SYM)           /* implies sym */
138
138
                Bputc(b, s);
139
139
        if(t & T_FCONST) {
140
 
                ieeedtod(&e, a->dval);
 
140
                ieeedtod(&e, a->u.dval);
141
141
                l = e;
142
142
                Bputc(b, l);
143
143
                Bputc(b, l>>8);
151
151
                return;
152
152
        }
153
153
        if(t & T_SCONST) {
154
 
                n = a->sval;
 
154
                n = a->u.sval;
155
155
                for(i=0; i<NSNAME; i++) {
156
156
                        Bputc(b, *n);
157
157
                        n++;
293
293
        
294
294
        p->to.type = D_SCONST;
295
295
        p->to.index = D_NONE;
296
 
        memmove(p->to.sval, t, n);
 
296
        memmove(p->to.u.sval, t, n);
297
297
        return off + n;
298
298
}
299
299
 
373
373
        p = gins(ADATA, nam, N);
374
374
        p->from.scale = w;
375
375
        p->to.type = D_FCONST;
376
 
        p->to.dval = mpgetflt(&cval->real);
 
376
        p->to.u.dval = mpgetflt(&cval->real);
377
377
 
378
378
        p = gins(ADATA, nam, N);
379
379
        p->from.scale = w;
380
380
        p->from.offset += w;
381
381
        p->to.type = D_FCONST;
382
 
        p->to.dval = mpgetflt(&cval->imag);
 
382
        p->to.u.dval = mpgetflt(&cval->imag);
383
383
}
384
384
 
385
385
void