[Ada] Add fallback on Integer_Arithmetic
authorArnaud Charlet <charlet@adacore.com>
Thu, 12 Mar 2020 17:16:05 +0000 (13:16 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 11 Jun 2020 09:53:31 +0000 (05:53 -0400)
commitf7823e6299fa49645b5ed20712a0272f1776cd5c
tree32fda3f98a61ae1ed8e738b9631d095ce1658bf5
parent8cff672cb9a132d3d3158c2edfc9a64b55292b80
[Ada] Add fallback on Integer_Arithmetic

2020-06-11  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* libgnat/s-aoinar.adb (Atomic_Fetch_And_Add,
Atomic_Fetch_And_Subtract): Add fallback using
compare-and-exchange, in case the integer type does not map to a
machine type.
gcc/ada/libgnat/s-aoinar.adb