Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(795)

Side by Side Diff: src/cmd/dist/buildruntime.c

Issue 109050043: code review 109050043: all: remove 'extern register M *m' from runtime (Closed)
Patch Set: diff -r 2699961d1143 https://code.google.com/p/go/ Created 10 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/cmd/5a/lex.c ('k') | src/cmd/ld/data.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "a.h" 5 #include "a.h"
6 6
7 /* 7 /*
8 * Helpers for building pkg/runtime. 8 * Helpers for building pkg/runtime.
9 */ 9 */
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 static struct { 125 static struct {
126 char *goarch; 126 char *goarch;
127 char *goos; 127 char *goos;
128 char *hdr; 128 char *hdr;
129 } zasmhdr[] = { 129 } zasmhdr[] = {
130 {"386", "", 130 {"386", "",
131 "#define get_tls(r) MOVL TLS, r\n" 131 "#define get_tls(r) MOVL TLS, r\n"
132 "#define g(r) 0(r)(TLS*1)\n" 132 "#define g(r) 0(r)(TLS*1)\n"
133 "#define m(r) 4(r)(TLS*1)\n"
134 }, 133 },
135 {"amd64p32", "", 134 {"amd64p32", "",
136 "#define get_tls(r) MOVL TLS, r\n" 135 "#define get_tls(r) MOVL TLS, r\n"
137 "#define g(r) 0(r)(TLS*1)\n" 136 "#define g(r) 0(r)(TLS*1)\n"
138 "#define m(r) 4(r)(TLS*1)\n"
139 }, 137 },
140 {"amd64", "", 138 {"amd64", "",
141 "#define get_tls(r) MOVQ TLS, r\n" 139 "#define get_tls(r) MOVQ TLS, r\n"
142 "#define g(r) 0(r)(TLS*1)\n" 140 "#define g(r) 0(r)(TLS*1)\n"
143 "#define m(r) 8(r)(TLS*1)\n"
144 },······ 141 },······
145 142
146 {"arm", "", 143 {"arm", "",
147 "#define LR R14\n" 144 "#define LR R14\n"
148 }, 145 },
149 }; 146 };
150 147
151 #define MAXWINCB 2000 /* maximum number of windows callbacks allowed */ 148 #define MAXWINCB 2000 /* maximum number of windows callbacks allowed */
152 149
153 // mkzasm writes zasm_$GOOS_$GOARCH.h, 150 // mkzasm writes zasm_$GOOS_$GOARCH.h,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 400
404 bfree(&in); 401 bfree(&in);
405 bfree(&b); 402 bfree(&b);
406 bfree(&b1); 403 bfree(&b1);
407 bfree(&out); 404 bfree(&out);
408 vfree(&argv); 405 vfree(&argv);
409 vfree(&lines); 406 vfree(&lines);
410 vfree(&fields); 407 vfree(&fields);
411 vfree(&seen); 408 vfree(&seen);
412 } 409 }
OLDNEW
« no previous file with comments | « src/cmd/5a/lex.c ('k') | src/cmd/ld/data.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b