commit | c49ad6c4e66fa7ca992d947a5f0377090abadf6b | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Fri Feb 01 13:05:30 2019 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Fri Feb 01 21:54:17 2019 +0000 |
tree | 275c316d9921b3adb909aec7a5c5bd1009401b0d | |
parent | e40be7a1c26a4bfcd7061b689eff111d03ba044d [diff] |
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 Change-Id: I27333d59e7c795c1e2a6de63eb5eab67d9fe13b2 Reviewed-on: https://go-review.googlesource.com/c/160820 Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>