https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84215
--- Comment #6 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> --- Author: ian Date: Mon Feb 12 18:50:16 2018 New Revision: 257599 URL: https://gcc.gnu.org/viewcvs?rev=257599&root=gcc&view=rev Log: PR go/84215 runtime, sync/atomic: use write barrier for atomic pointer functions This copies atomic_pointer.go from 1.10rc2. It was omitted during the transition of the runtime from C to Go, and I forgot about it. This may help with https://gcc.gnu.org/PR84215. Reviewed-on: https://go-review.googlesource.com/93197 Added: trunk/libgo/go/runtime/atomic_pointer.go Modified: trunk/gcc/go/gofrontend/MERGE trunk/libgo/go/runtime/stubs.go trunk/libgo/go/sync/atomic/atomic.c