diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-09-10 12:21:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-09-10 12:21:59 +0000 |
commit | 337fa50b7b0d2964b6ebe2373224b5c1bbb61efb (patch) | |
tree | b4415ddf1a7fca30e8f28898fc5f1a50f344315c /libgo/Makefile.am | |
parent | ec1ea9cfbcd4a1285b4dfa81cb1680aed3ecd7e5 (diff) | |
download | gcc-337fa50b7b0d2964b6ebe2373224b5c1bbb61efb.zip gcc-337fa50b7b0d2964b6ebe2373224b5c1bbb61efb.tar.gz gcc-337fa50b7b0d2964b6ebe2373224b5c1bbb61efb.tar.bz2 |
runtime/internal/atomic: new package, API copied from Go 1.7
Copy over the Go 1.7 runtime/internal/atomic package, but implement the
functions in C using __atomic functions rather than using the
processor-specific assembler code.
Reviewed-on: https://go-review.googlesource.com/29010
From-SVN: r240070
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r-- | libgo/Makefile.am | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 0a54a89..1fde508 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -843,6 +843,8 @@ libgo_go_objs = \ net/rpc/jsonrpc.lo \ runtime/debug.lo \ runtime/pprof.lo \ + runtime/internal/atomic.lo \ + runtime/internal/atomic_c.lo \ sync/atomic.lo \ sync/atomic_c.lo \ text/scanner.lo \ @@ -2365,6 +2367,18 @@ runtime/pprof/check: $(CHECK_DEPS) # Also use -fno-inline to get better results from the memory profiler. runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline +@go_include@ runtime/internal/atomic.lo.dep +runtime/internal/atomic.lo.dep: $(srcdir)/go/runtime/internal/atomic/*.go + $(BUILDDEPS) +runtime_internal_atomic_lo_GOCFLAGS = -fgo-compiling-runtime +runtime/internal/atomic.lo: + $(BUILDPACKAGE) +runtime/internal/atomic_c.lo: go/runtime/internal/atomic/atomic.c runtime.inc runtime/internal/atomic.lo + $(LTCOMPILE) -c -o $@ $(srcdir)/go/runtime/internal/atomic/atomic.c +runtime/internal/atomic/check: $(CHECK_DEPS) + @$(CHECK) +.PHONY: runtime/internal/atomic/check + @go_include@ sync/atomic.lo.dep sync/atomic.lo.dep: $(srcdir)/go/sync/atomic/*.go $(BUILDDEPS) @@ -2800,6 +2814,8 @@ runtime/debug.gox: runtime/debug.lo $(BUILDGOX) runtime/pprof.gox: runtime/pprof.lo $(BUILDGOX) +runtime/internal/atomic.gox: runtime/internal/atomic.lo + $(BUILDGOX) sync/atomic.gox: sync/atomic.lo $(BUILDGOX) @@ -2954,6 +2970,7 @@ TEST_PACKAGES = \ path/filepath/check \ regexp/syntax/check \ runtime/pprof/check \ + runtime/internal/atomic/check \ sync/atomic/check \ text/scanner/check \ text/tabwriter/check \ |