Switch from __sync_fetch_*() to __atomic_*() in glib/gatomic.h
Since gcc
4.1, the atomic operations framework changed from the __sync_fetch_*()
intrinsics to the new __atomic_*()
intrinsics. And, the __sync_fetch_*()
are now deprecated since a few years.
Yet, glib/gatomic.h
is still based on the deprecated __sync_fetch_*()
intrinsics. This should switch to the new __atomic_*()
intrinsics which offer also a better control over the memory model used by the hardware.