summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-10-30 09:49:48 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-10-30 09:49:48 +0300
commit483814a141027913c385cad52b2e8e6449eba934 (patch)
treeb44ba132223c2c8db0d329fbe08cfdcf2396b72c
parent75275f63a0de0a2589656e5a9fa92b0a687f39e0 (diff)
downloadbdwgc-483814a141027913c385cad52b2e8e6449eba934.tar.gz
Do not name GCC intrinsics as C11 ones
* CMakeLists.txt (GC_BUILTIN_ATOMIC): Do not mention C11 in comment (or documentation) when referring to GCC intrinsics. * configure.ac (GC_BUILTIN_ATOMIC): Likewise. * include/private/gc_atomic_ops.h: Likewise. * ChangeLog (8.0.0): Do not mention C11 when referring to GCC intrinsics. * doc/README.macros (GC_BUILTIN_ATOMIC): Likewise.
-rw-r--r--CMakeLists.txt2
-rw-r--r--ChangeLog2
-rw-r--r--configure.ac2
-rw-r--r--doc/README.macros4
-rw-r--r--include/private/gc_atomic_ops.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72a0015c..ce3a0ea7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -173,7 +173,7 @@ if (CMAKE_USE_PTHREADS_INIT)
if (HOST MATCHES .*-.*-hpux10.*)
message(FATAL_ERROR "HP/UX 10 POSIX threads are not supported.")
endif()
- # Assume the compiler supports C11 (GCC) atomic intrinsics.
+ # Assume the compiler supports GCC atomic intrinsics.
add_definitions("-DGC_BUILTIN_ATOMIC")
# Common defines for POSIX platforms.
add_definitions("-DGC_THREADS -D_REENTRANT")
diff --git a/ChangeLog b/ChangeLog
index 1f0f8ba6..41fefcd9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -426,7 +426,7 @@
* Access finalize_now atomically to avoid TSan warning without no-sanitize
* Acknowledge thread restart from suspend_handler (NetBSD)
* Add a sanity check that load_acquire and store_release are available
-* Add AO primitives implementation to GC based on C11 atomic intrinsic
+* Add AO primitives implementation to GC based on GCC atomic intrinsic
* Add assertion for suspend_ack_sem in start_world
* Add assertion to allocobj that live unmarked object cannot be reclaimed
* Add assertions about held lock when accessing all_bottom_indices
diff --git a/configure.ac b/configure.ac
index 03a629c1..37f0aed4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1090,7 +1090,7 @@ AS_IF([test x"$with_libatomic_ops" != xno],
[ AC_MSG_RESULT([none])
AS_IF([test x"$THREADS" != xnone],
[ AC_DEFINE([GC_BUILTIN_ATOMIC], [1],
- [Use C11 (GCC) atomic intrinsics instead of
+ [Use GCC atomic intrinsics instead of
libatomic_ops primitives.]) ]) ])
AO_TRYLINK_CFLAGS="" ],
[ AC_MSG_RESULT([internal])
diff --git a/doc/README.macros b/doc/README.macros
index 3df6a2d7..9b1c03bc 100644
--- a/doc/README.macros
+++ b/doc/README.macros
@@ -413,8 +413,8 @@ GC_ATTR_TLS_FAST Use specific attributes for GC_thread_key like
PARALLEL_MARK Allows the marker to run in multiple threads. Recommended
for multiprocessors.
-GC_BUILTIN_ATOMIC Use C11 (GCC) atomic intrinsics instead of
- libatomic_ops primitives.
+GC_BUILTIN_ATOMIC Use GCC atomic intrinsics instead of libatomic_ops
+ primitives.
GC_ALWAYS_MULTITHREADED Force multi-threaded mode at GC initialization.
(Turns GC_allow_register_threads into a no-op routine.)
diff --git a/include/private/gc_atomic_ops.h b/include/private/gc_atomic_ops.h
index 235f2c86..720c26b8 100644
--- a/include/private/gc_atomic_ops.h
+++ b/include/private/gc_atomic_ops.h
@@ -12,7 +12,7 @@
*/
/* This is a private GC header which provides an implementation of */
-/* libatomic_ops subset primitives sufficient for GC assuming that C11 */
+/* libatomic_ops subset primitives sufficient for GC assuming that GCC */
/* atomic intrinsics are available (and have correct implementation). */
/* This is enabled by defining GC_BUILTIN_ATOMIC macro. Otherwise, */
/* libatomic_ops library is used to define the primitives. */