]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx: Support global constructors/destructors via 'collect2' for offloading
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 30 Nov 2022 21:09:35 +0000 (22:09 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 20 Jan 2023 20:43:32 +0000 (21:43 +0100)
commit689a5340c7e4286b451f1bc600342550c7c94da2
tree8dd2907ee1cce2582b8852f160e52570dabf8faf
parentfe07b0003bb2092bc34d4bed504be1868b88782d
nvptx: Support global constructors/destructors via 'collect2' for offloading

This extends "nvptx: Support global constructors/destructors via 'collect2'"
for offloading.

libgcc/
* config/nvptx/crtstuff.c ["mgomp"]
(__do_global_ctors__entry__mgomp)
(__do_global_dtors__entry__mgomp): New.
[!"mgomp"] (__do_global_ctors__entry, __do_global_dtors__entry):
New.
libgomp/
* plugin/plugin-nvptx.c (nvptx_do_global_cdtors): New.
(nvptx_close_device, GOMP_OFFLOAD_load_image)
(GOMP_OFFLOAD_unload_image): Call it.
libgcc/ChangeLog.omp
libgcc/config/nvptx/crtstuff.c
libgomp/ChangeLog.omp
libgomp/plugin/plugin-nvptx.c