ada: Improve CUDA host-side and device-side binder support
authorSteve Baird <baird@adacore.com>
Mon, 12 Sep 2022 22:31:19 +0000 (15:31 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 26 Sep 2022 09:02:30 +0000 (11:02 +0200)
commit37645e2cd752e2dddcf52d70dc20eadda3e44171
tree9a230bb9fd2405a1dbf5bb037e6667f3dc73acd2
parent6b8e3ee10fb7c15a79ebb8739a1fca3b2a62c706
ada: Improve CUDA host-side and device-side binder support

Binder-generated code is not allowed to use Ada2012 syntax. In order to
specify an aspect, a pragma must be used.

gcc/ada/

* bindgen.adb: When the binder is invoked for the device, specify
the CUDA_Global aspect for the adainit and adafinal procedures via
a pragma instead of via an aspect_specification.
gcc/ada/bindgen.adb