[Ada] Switch from __sync to __atomic builtins for atomic counters
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 30 Dec 2021 17:07:19 +0000 (18:07 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 10 Jan 2022 09:38:44 +0000 (09:38 +0000)
commitad85af8e5a6f2e7c3482b23c2e2153228889635e
treedaa9614aecc896106cf096ec58bb540208e4e0fc
parent68adddccb139f87ff705fd744eb3771fc2c6497a
[Ada] Switch from __sync to __atomic builtins for atomic counters

gcc/ada/

* libgnat/s-atocou__builtin.adb (Decrement, Increment): Switch
from __sync to __atomic builtins; use 'Address to be consistent
with System.Atomic_Primitives.
gcc/ada/libgnat/s-atocou__builtin.adb