1
0
mirror of https://github.com/golang/go synced 2024-11-23 11:20:05 -07:00
go/misc/cgo
Ian Lance Taylor d91ec5bb40 cmd/cgo, runtime: recognize unsafe.Pointer(&s[0]) in cgo pointer checks
It's fairly common to call cgo functions with conversions to
unsafe.Pointer or other C types.  Apply the simpler checking of address
expressions when possible when the address expression occurs within a
type conversion.

Change-Id: I5187d4eb4d27a6542621c396cad9ee4b8647d1cd
Reviewed-on: https://go-review.googlesource.com/18391
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-08 03:56:30 +00:00
..
errors cmd/cgo, runtime: recognize unsafe.Pointer(&s[0]) in cgo pointer checks 2016-01-08 03:56:30 +00:00
gmp misc/cgo/gmp: change pi.go to use standard Go copyright header 2015-12-11 13:29:46 +00:00
life misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
nocgo cmd/ld: really import runtime/cgo for external link 2014-05-20 21:36:50 -07:00
stdio misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
test runtime: fix sigaltstack test Skipf format string 2015-12-24 18:34:18 +00:00
testasan
testcarchive misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
testcshared misc/cgo/testcarchive,testcshared: deflake tests 2016-01-07 01:32:29 +00:00
testgodefs build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
testsanitizers runtime: call msanwrite on object passed to runtime/cgo 2016-01-06 04:04:42 +00:00
testshared misc/cgo/testshared: add format specifier in Errorf calls 2015-11-21 10:19:16 +00:00
testsigfwd runtime: for c-archive/c-shared, don't install unnecessary signal handlers 2015-12-18 22:27:38 +00:00
testso cmd/dist: convert testso test into Go 2015-06-12 04:33:50 +00:00
testsovar misc/cgo/testsovar: needs the extern keyword to export variables on non-windows platforms 2015-07-21 18:10:57 +00:00
testtls misc/cgo/testtls: make test less flaky 2014-01-21 19:44:51 -05:00