configure: Add --enable-compiler-atomic-builtins option
authorOlivier Dion <odion@efficios.com>
Fri, 17 Mar 2023 21:37:49 +0000 (22:37 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 14 Aug 2023 19:38:53 +0000 (15:38 -0400)
commit3afcf5a0407c69b32603a249e8e7b3d309584a85
tree06058ed562393282b3e7cdb211a19595c9c7ad03
parentc92c99041415698b57ca123e58a19b05189ae398
configure: Add --enable-compiler-atomic-builtins option

If the toolchain supports atomic builtins and the user ask for atomic
builtins, use them for the uatomic API. This requires that the
toolchains used to compile the library and the user application supports
such builtins.

The advantage of using these builtins is that they are well known
synchronization primitives by several tools such as TSAN.

However, they may introduce redundant memory barriers, mainly on
strongly ordered architectures.

Change-Id: Ia8e97112681f744f17816dbc4cbbec805a483331
Co-authored-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
README.md
configure.ac
include/urcu/config.h.in
m4/ae_cc_atomic_builtins.m4 [new file with mode: 0644]
This page took 0.026282 seconds and 4 git commands to generate.