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

« back to all changes in this revision

Viewing changes to src/cmd/8g/list.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:
107
107
                break;
108
108
 
109
109
        case D_BRANCH:
110
 
                snprint(str, sizeof(str), "%d", a->branch->loc);
 
110
                snprint(str, sizeof(str), "%d", a->u.branch->loc);
111
111
                break;
112
112
 
113
113
        case D_EXTERN:
137
137
                break;
138
138
 
139
139
        case D_FCONST:
140
 
                snprint(str, sizeof(str), "$(%.17e)", a->dval);
 
140
                snprint(str, sizeof(str), "$(%.17e)", a->u.dval);
141
141
                break;
142
142
 
143
143
        case D_SCONST:
144
 
                snprint(str, sizeof(str), "$\"%Y\"", a->sval);
 
144
                snprint(str, sizeof(str), "$\"%Y\"", a->u.sval);
145
145
                break;
146
146
 
147
147
        case D_ADDR:
158
158
                strcat(str, s);
159
159
        }
160
160
conv:
161
 
        return fmtstrcpy(fp, str);
 
161
        fmtstrcpy(fp, str);
 
162
        if(a->gotype)
 
163
                fmtprint(fp, "{%s}", a->gotype->name);
 
164
        return 0;
162
165
}
163
166
 
164
167
static  char*   regstr[] =
231
234
        "TR6",
232
235
        "TR7",
233
236
 
 
237
        "X0",           /* [D_X0] */
 
238
        "X1",
 
239
        "X2",
 
240
        "X3",
 
241
        "X4",
 
242
        "X5",
 
243
        "X6",
 
244
        "X7",
 
245
 
234
246
        "NONE",         /* [D_NONE] */
235
247
};
236
248