1
0
mirror of https://github.com/golang/go synced 2024-11-05 18:36:10 -07:00
go/misc/cgo
Ian Lance Taylor b4924870f4 misc/cgo/test: use __atomic intrinsics instead of __sync
GCC has supported the __atomic intrinsics since 4.7, and clang
supports them as well. They are better than the __sync intrinsics in
that they specify a memory model and, more importantly for our purposes,
they are reliably implemented either in the compiler or in libatomic.

Change-Id: I5e0036ea3300f65c28b1c3d1f3b93fb61c1cd646
Reviewed-on: https://go-review.googlesource.com/c/go/+/193603
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
2019-09-06 17:38:58 +00:00
..
errors cmd/cgo: do not rewrite call if there are more args than parameters 2019-07-12 17:31:29 +00:00
fortran cmd/compile, misc/cgo: fix fortran tests on aix/ppc64 2019-03-22 13:52:59 +00:00
gmp all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
life misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
nocgo cmd/ld: really import runtime/cgo for external link 2014-05-20 21:36:50 -07:00
stdio misc/android: enable many more tests on GOOS=android 2019-03-08 23:32:03 +00:00
test misc/cgo/test: use __atomic intrinsics instead of __sync 2019-09-06 17:38:58 +00:00
testasan runtime: more flexible heap memory mapping on 64-bits 2013-06-12 18:47:16 +04:00
testcarchive runtime: don't forward SIGPIPE on macOS 2019-08-31 06:19:40 +00:00
testcshared misc/cgo: disable testcarchive, testplugin during -short test (including all.bash) 2019-05-16 03:25:04 +00:00
testgodefs misc/cgo/testgodefs: move source files into testdata 2019-02-26 02:44:12 +00:00
testplugin misc/cgo: disable testcarchive, testplugin during -short test (including all.bash) 2019-05-16 03:25:04 +00:00
testsanitizers runtime: save/restore callee saved registers in arm64's sigtramp 2019-06-03 19:02:11 +00:00
testshared cmd/link: put shlib ".type" functions in internal ABI 2019-07-15 22:54:39 +00:00
testsigfwd misc/cgo/testsigfwd: add missing return statement 2016-08-30 21:44:14 +00:00
testso misc/cgo: enable testso and testsovar on aix/ppc64 2019-03-27 17:21:28 +00:00
testsovar misc/cgo: enable testso and testsovar on aix/ppc64 2019-03-27 17:21:28 +00:00
testtls all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00