]> gcc.gnu.org Git - gcc.git/commit
compiler: recognize Go 1.18 runtime/internal/atomic methods
authorIan Lance Taylor <iant@golang.org>
Mon, 7 Feb 2022 02:25:25 +0000 (18:25 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 04:13:11 +0000 (20:13 -0800)
commit869fb813039e8933a85f5f2a3a53cde156030b0a
treeac6fbc1784a8cfd0c39e029b8e079de3789ceec7
parent3ab49b1c822cf8c5748fa4de0ac970c948de6f8a
compiler: recognize Go 1.18 runtime/internal/atomic methods

The Go 1.18 library introduces specific types in runtime/internal/atomic.
Recognize and optimize the methods on those types, as we do with the
functions in runtime/internal/atomic.

While we're here avoid getting confused by methods in any other
package that we recognize specially.

* go-gcc.cc (Gcc_backend::Gcc_backend): Define builtins
__atomic_load_1 and __atomic_store_1.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/383654
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/runtime.def
This page took 0.066219 seconds and 6 git commands to generate.