summaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-01 18:51:12 -0400
committerRuss Cox <rsc@golang.org>2014-09-01 18:51:12 -0400
commit2cc5c08e8f57708722fb9afe125d7534c04ad3f1 (patch)
treee99c3560c53618b214d5e597ba63c2fd52b9e1bf /src/cmd/dist
parentc7c0b5dbcaa072956b193949e7b1f72d10a2046f (diff)
downloadgo-2cc5c08e8f57708722fb9afe125d7534c04ad3f1.tar.gz
runtime: convert mprof.goc to mprof.go
The exported Go definitions appearing in mprof.go are copied verbatim from debug.go. The unexported Go funcs and types are new. The C Bucket type used a union and was not a line-for-line translation. LGTM=remyoudompheng R=golang-codereviews, remyoudompheng CC=dvyukov, golang-codereviews, iant, khr, r https://codereview.appspot.com/137040043
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/buildruntime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/dist/buildruntime.c b/src/cmd/dist/buildruntime.c
index 2396e20c5..ade91024d 100644
--- a/src/cmd/dist/buildruntime.c
+++ b/src/cmd/dist/buildruntime.c
@@ -346,10 +346,11 @@ mkzruntimedefs(char *dir, char *file)
"\n"
);
- // Do not emit constant definitions for these.
+ // Do not emit definitions for these.
vadd(&seen, "true");
vadd(&seen, "false");
vadd(&seen, "raceenabled");
+ vadd(&seen, "allgs");
// Run 6c -D GOOS_goos -D GOARCH_goarch -I workdir -q -n -o workdir/runtimedefs
// on each of the runtimedefs C files.