aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/doc.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2015-10-21 07:04:10 -0700
committerIan Lance Taylor <iant@golang.org>2015-10-21 14:58:53 +0000
commit0c69f1303f3dbd4515f1cab0602aaafc3364a946 (patch)
tree54841ce9ba5ec1b76fd8a4a89d2ee150b6067545 /src/cmd/compile/doc.go
parent7b4b96f2480d52ad99303a2c7868f2e110c2c6f8 (diff)
downloadgo-0c69f1303f3dbd4515f1cab0602aaafc3364a946.tar.gz
go-0c69f1303f3dbd4515f1cab0602aaafc3364a946.zip
cmd/compile: add -msan option
The -msan option causes the compiler to add instrumentation for the C/C++ memory sanitizer. Every memory read/write will be preceded by a call to msanread/msanwrite. This CL passes tests but is not usable by itself. The actual implementation of msanread/msanwrite in the runtime package, and support for -msan in the go tool and the linker, and tests, will follow in subsequent CLs. Change-Id: I3d517fb3e6e65d9bf9433db070a420fd11f57816 Reviewed-on: https://go-review.googlesource.com/16160 Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/cmd/compile/doc.go')
-rw-r--r--src/cmd/compile/doc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go
index 59c660b2d5..f70c1cf6d4 100644
--- a/src/cmd/compile/doc.go
+++ b/src/cmd/compile/doc.go
@@ -66,6 +66,8 @@ Flags:
Write memory profile for the compilation to file.
-memprofilerate rate
Set runtime.MemProfileRate for the compilation to rate.
+ -msan
+ Insert calls to C/C++ memory sanitizer.
-nolocalimports
Disallow local (relative) imports.
-o file