gcc/libgomp/plugin
Chung-Lin Tang fbb592407c libgomp: Fix GOMP_DEVICE_NUM_VAR stringification during offload image load
In the patch that implemented omp_get_device_num(), there was an error where
the stringification of GOMP_DEVICE_NUM_VAR, which is the macro expanding to
the actual symbol used, was erroneously using the STRINGX() macro in the
libgomp offload image symbol search, and expansion of the variable name
string through the additional layer of preprocessor symbol was not properly
achieved.

This patch fixes this by changing to properly use XSTRING(), also from
include/symcat.h.

libgomp/ChangeLog:

	* plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
	into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
	* plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2022-01-04 17:26:23 +08:00
..
cuda Update copyright years. 2022-01-03 10:42:10 +01:00
configfrag.ac Update copyright years. 2022-01-03 10:42:10 +01:00
cuda-lib.def
Makefrag.am Update copyright years. 2022-01-03 10:42:10 +01:00
plugin-gcn.c libgomp: Fix GOMP_DEVICE_NUM_VAR stringification during offload image load 2022-01-04 17:26:23 +08:00
plugin-nvptx.c libgomp: Fix GOMP_DEVICE_NUM_VAR stringification during offload image load 2022-01-04 17:26:23 +08:00