]> git.ipfire.org Git - thirdparty/gcc.git/commit
runtime, sync: use __atomic intrinsics instead of __sync
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2019 21:55:38 +0000 (21:55 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Feb 2019 21:55:38 +0000 (21:55 +0000)
commit83b4aba68861880ca579a5e4cd396943b3405e1f
treeeace57a9fb5df73173371815f0a0e1a5913a77a8
parentbdb432761c37a01401a471d40dd55d97e61f7724
runtime, sync: use __atomic intrinsics instead of __sync

    GCC has supported the __atomic intrinsics since 4.7.  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.

    Fixes https://gcc.gnu.org/PR52084

    Reviewed-on: https://go-review.googlesource.com/c/160820

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268458 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/config.h.in
libgo/configure
libgo/configure.ac
libgo/go/runtime/testdata/testprogcgo/lockosthread.c
libgo/go/runtime/testdata/testprogcgo/threadpprof.go
libgo/go/runtime/testdata/testprogcgo/tracebackctxt_c.c
libgo/go/sync/atomic/atomic.c
libgo/go/sync/cas.c [deleted file]
libgo/misc/cgo/test/issue7978.go
libgo/runtime/runtime.h
libgo/runtime/thread.c [deleted file]