[Ada] Use atomics in runtime on ARM and Aarch64 VxWorks
Pierre-Marie de Rodat
Tue Nov 9 09:46:10 GMT 2021
For ARM and Aarch64 architectures we use runtime units that rely on
atomic builtins instructions on all OSes except VxWorks (e.g. QNX,
Linux, FreeBSD). This looks like an oversight, because the builtins
depend on the architecture, not on the OS.
Part of improving efficiency of the Ada.Strings.Unbounded unit by using
non-null types to avoid runtime checks.
Tested on x86_64-pc-linux-gnu, committed on trunk
* Makefile.rtl (ARM and Aarch64 VxWorks): Use atomic variants of
* libgnat/a-strunb__shared.ads: Mention AARCH64 and ARM as
* libgnat/s-atocou.ads: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1470 bytes
Desc: not available
More information about the Gcc-patches