[Ada] Disable lock free protected implementation if target lacks support
authorSteve Baird <baird@adacore.com>
Mon, 22 Aug 2022 22:25:28 +0000 (15:25 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:23 +0000 (09:14 +0200)
commit5e34c91420ffcacb27e4b0a9a83b97b9ee42a337
tree0bbe97ec75433e3592a16f6396d8617e0b4fe2ab
parent71747dda9d491b8b28df20eaed84c71ca75f51d0
[Ada] Disable lock free protected implementation if target lacks support

Do not select a lock free implementation if Targparm.Support_Atomic_Primitives
is False (which indicates that the target cannot support it).

gcc/ada/

* sem_ch9.adb
(Allows_Lock_Free_Implementation): Return False if
Support_Atomic_Primitives is False.
gcc/ada/sem_ch9.adb