]> gcc.gnu.org Git - gcc.git/commit
ada: Fixed elaboration of CUDA programs.
authorQuentin Ochem <ochem@adacore.com>
Fri, 14 Oct 2022 10:30:04 +0000 (06:30 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:34 +0000 (09:36 +0100)
commitb86ff061234ff42934bc08c5dc1ba041724eba22
treef693fcf8c1501f95cb2f32b42caf78cb373605a1
parentaa0e7d31a803f948504f8692c4ae48e3ba1b677b
ada: Fixed elaboration of CUDA programs.

The names of imported / exported symbols were not consistent
between the device and the host when compiling for CUDA.

Remove the function Device_Ada_Final_Link_Name as it is no
longer referenced.

gcc/ada/

* bindgen.adb: fixed the way the device init and final symbols are
computed, re-using the normal way these symbols would be computed
with a __device_ prefix. Also fixed the "is null;" procedure on
the host side which are not Ada 95, replaced with a procedure
raising an exception as it should never be called. Remove the
unused function Device_Ada_Final_Link_Name.

Co-authored-by: Steve Baird <baird@adacore.com>
gcc/ada/bindgen.adb
This page took 0.062379 seconds and 6 git commands to generate.