go/src/cmd/cgo
Michael Hudson-Doyle 499cd33719 cmd/cgo: an approach to tsan that works with gcc
GCC, unlike clang, does not provide any way for code being compiled to tell if
-fsanitize-thread was passed. But cgo can look to see if that flag is being
passed and generate different code in that case.

Fixes #14602

Change-Id: I86cb5318c2e35501ae399618c05af461d1252d2d
Reviewed-on: https://go-review.googlesource.com/22688
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-05-03 00:49:46 +00:00
..
ast.go cmd: remove unnecessary type conversions 2016-04-15 02:32:10 +00:00
doc.go cmd/cgo, runtime, runtime/cgo: use cgo context function 2016-04-29 22:07:36 +00:00
gcc.go cmd/cgo: add missing formatting directive in error message 2016-04-15 22:03:22 +00:00
godefs.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main.go cmd/cgo: an approach to tsan that works with gcc 2016-05-03 00:49:46 +00:00
out.go cmd/cgo: an approach to tsan that works with gcc 2016-05-03 00:49:46 +00:00
util.go all: single space after period. 2016-03-02 00:13:47 +00:00