]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add -msan option
authorIan Lance Taylor <iant@golang.org>
Wed, 21 Oct 2015 14:04:10 +0000 (07:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Oct 2015 14:58:53 +0000 (14:58 +0000)
commit0c69f1303f3dbd4515f1cab0602aaafc3364a946
tree54841ce9ba5ec1b76fd8a4a89d2ee150b6067545
parent7b4b96f2480d52ad99303a2c7868f2e110c2c6f8
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>
src/cmd/compile/doc.go
src/cmd/compile/internal/gc/builtin.go
src/cmd/compile/internal/gc/builtin/runtime.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/lex.go
src/cmd/compile/internal/gc/racewalk.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/subr.go
src/cmd/compile/internal/gc/walk.go