[Ada] Switch from __sync to __atomic builtins for Lock_Free_Try_Write
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 31 Dec 2021 10:40:47 +0000 (11:40 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 10 Jan 2022 09:38:45 +0000 (09:38 +0000)
commit41899cd372630dfd74bb928568a48e976e1baf66
tree14698bf61a790168f98f1e676209f292277cc2e1
parent888fb69365c64ca5dbd4815d7451c35014d264b5
[Ada] Switch from __sync to __atomic builtins for Lock_Free_Try_Write

gcc/ada/

* libgnat/s-atopri.ads (Atomic_Compare_Exchange): Replaces
deprecated Sync_Compare_And_Swap.
* libgnat/s-atopri.adb (Lock_Free_Try_Write): Switch from __sync
to __atomic builtins.
gcc/ada/libgnat/s-atopri.adb
gcc/ada/libgnat/s-atopri.ads