From: Mathieu Desnoyers Date: Mon, 19 Apr 2021 15:21:52 +0000 (-0400) Subject: Fix: use __atomic_load() rather than atomic load explicit X-Git-Tag: v0.13.0~13 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=3abcdbd14d1b9291f06a4a4bbca313fcfbe5452b;hp=3abcdbd14d1b9291f06a4a4bbca313fcfbe5452b;p=urcu.git Fix: use __atomic_load() rather than atomic load explicit Use __atomic_load (gcc extension) rather than atomic load explict (C11/C++11) for rcu_dereference because it does not require the input type to be _Atomic. This fixes a regression with clang introduced by commit 380f4b19052 ("Fix: use atomic load memory_order_consume for rcu_dereference on C11/C++11"). Note that the cmm_smp_read_barrier_depends is removed when using __ATOMIC_CONSUME because their memory ordering effect is redundant. Signed-off-by: Mathieu Desnoyers Change-Id: Icd5f6040e0bd2167844a8d856ae5475ceef17123 ---