]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: intrinsify runtime/internal/atomic functions
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 00:21:22 +0000 (00:21 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 00:21:22 +0000 (00:21 +0000)
commitdaccb2bc3a0365d3e474a2a1b4a5d41d61ef6329
treec47f111e7291a1fc34360a96cd67dbdfe84dc56a
parent0c4ea4d5e9051d9a6997b463f1624b5f229470b0
compiler: intrinsify runtime/internal/atomic functions

    Currently runtime/internal/atomic functions are implemented in C
    using C compiler intrinsics. This CL lets the Go frontend
    recognize these functions and turn them into intrinsics directly.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/176918

* go-gcc.cc (Gcc_backend::Gcc_backend): Define atomic builtins.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271308 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.cc
gcc/go/gofrontend/runtime.def