[Ada] Code cleanups in System.Atomic_Counters

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 7 16:25:33 GMT 2021


In particular, now that we are using Atomic_Unsigned which is marked
Atomic, we no longer need to mark Atomic_Counter.Value explicitly
atomic.

We can also get rid of all uses of 'Unrestricted_Access

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* libgnat/s-atocou.ads, libgnat/s-atocou__builtin.adb: Code
	cleanups.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 2453 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210707/60f23396/attachment.bin>


More information about the Gcc-patches mailing list