[PATCH] OpenMP: Ensure that offloaded variables are public

Jakub Jelinek jakub@redhat.com
Thu Dec 9 12:34:31 GMT 2021


On Thu, Dec 09, 2021 at 11:41:46AM +0000, Andrew Stubbs wrote:
> gcc/ChangeLog:
> 
> 	* config/gcn/mkoffload.c (process_asm): Process the variable table
> 	completely differently.
> 	(process_obj): Encode the varaible data differently.
> 
> include/ChangeLog:
> 
> 	* gomp-constants.h (GOMP_VERSION_GCN): Bump.
> 
> libgomp/ChangeLog:
> 
> 	* plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
> 	(GOMP_OFFLOAD_load_image): Locate the offload variables via the
> 	table, not individual symbols.

I'm very happy this worked out.  LGTM, but sure, you can approve it
yourself.

	Jakub



More information about the Gcc-patches mailing list