aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2022-10-05 15:16:26 -0700
committerMarc Poulhiès <poulhies@adacore.com>2022-11-04 14:47:23 +0100
commitc07da8567bfc67bd28191f63a9247566260063ad (patch)
tree991be92d777e00b06fef8b82a8c6106291036559 /gcc/expr.cc
parentffcd1921e0aa37cf6b0fc6926bcadb0e988e4a2a (diff)
downloadgcc-c07da8567bfc67bd28191f63a9247566260063ad.zip
gcc-c07da8567bfc67bd28191f63a9247566260063ad.tar.gz
gcc-c07da8567bfc67bd28191f63a9247566260063ad.tar.bz2
ada: Generate missing object decls for adainit/adafinal registration calls
A previous change on this ticket introduced calls to CUDA_Register_Function for adainit and adafinal, but failed to introduce declarations for the C string variables that are initialized and then passed as actual parameters in this call. Provide the missing declarations (and, incidentally, change the names of the two variables). gcc/ada/ * bindgen.adb: Introduce two new string constants for the names of the C-String variables that are assigned the names for adainit and adafinal. Replace string literals in Gen_CUDA_Init with references to these constants. In Gen_CUDA_Defs, generate C-String variable declarations where these constants are the names of the variables.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions