compiler: intrinsify runtime/internal/atomic functions
authorCherry Zhang <cherryyz@google.com>
Fri, 17 May 2019 00:21:22 +0000 (00:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 17 May 2019 00:21:22 +0000 (00:21 +0000)
commit395389bf9492a69db79747943d32abd0b7ac36c3
treec47f111e7291a1fc34360a96cd67dbdfe84dc56a
parent6a362e1237fa3d7f2330181566eff02d83794475
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.

From-SVN: r271308
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