gcc/include
Andrew Stubbs 028b55a93e amdgcn: Change offload variable table discovery
Up to now the libgomp GCN plugin has been finding the offload variables
by using a symbol lookup, but the AMD runtime requires that the symbols are
global for that to work. This was ensured by mkoffload as a post-procssing
step, but the LLVM 13 assembler no longer accepts this in the case where the
variable was previously declared differently.

This patch switches to locating the symbols directly from the
offload_var_table, which means that only one symbol needs to be forced
global.

This changes breaks the libgomp image compatibility so GOMP_VERSION_GCN has
also been bumped.

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.

(cherry picked from commit 4a87a8e4b1)
2021-12-22 11:49:56 +00:00
..
gdb Update copyright years. 2021-01-04 10:26:59 +01:00
ansidecl.h Update copyright years. 2021-01-04 10:26:59 +01:00
ChangeLog Update ChangeLog and version files for release 2021-07-28 06:55:28 +00:00
ChangeLog-9103 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
ChangeLog.omp amdgcn: Change offload variable table discovery 2021-12-22 11:49:56 +00:00
COPYING
COPYING3 COPYING_v3: New file. 2007-07-17 08:37:53 +00:00
demangle.h c++: Adjust mangling of __alignof__ [PR88115] 2021-03-30 22:57:11 -04:00
dwarf2.def dwarf: Multi-register CFI address support 2021-04-22 10:14:30 -07:00
dwarf2.h Update copyright years. 2021-01-04 10:26:59 +01:00
dyn-string.h Update copyright years. 2021-01-04 10:26:59 +01:00
environ.h Update copyright years. 2021-01-04 10:26:59 +01:00
fibheap.h Update copyright years. 2021-01-04 10:26:59 +01:00
filenames.h Update copyright years. 2021-01-04 10:26:59 +01:00
floatformat.h Update copyright years. 2021-01-04 10:26:59 +01:00
fnmatch.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-c-fe.def Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-c-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-cp-fe.def Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-cp-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
getopt.h Update copyright years. 2021-01-04 10:26:59 +01:00
gomp-constants.h amdgcn: Change offload variable table discovery 2021-12-22 11:49:56 +00:00
hashtab.h Update copyright years. 2021-01-04 10:26:59 +01:00
hsa_ext_amd.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
hsa_ext_image.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
hsa.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
leb128.h Update copyright years. 2021-01-04 10:26:59 +01:00
libiberty.h Update copyright years. 2021-01-04 10:26:59 +01:00
longlong.h Update copyright years. 2021-01-04 10:26:59 +01:00
lto-symtab.h Update copyright years. 2021-01-04 10:26:59 +01:00
md5.h Update copyright years. 2021-01-04 10:26:59 +01:00
objalloc.h Update copyright years. 2021-01-04 10:26:59 +01:00
obstack.h Update copyright years. 2021-01-04 10:26:59 +01:00
partition.h Update copyright years. 2021-01-04 10:26:59 +01:00
plugin-api.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe-ctype.h Update copyright years. 2021-01-04 10:26:59 +01:00
sha1.h Update copyright years. 2021-01-04 10:26:59 +01:00
simple-object.h Update copyright years. 2021-01-04 10:26:59 +01:00
sort.h Update copyright years. 2021-01-04 10:26:59 +01:00
splay-tree.h Update copyright years. 2021-01-04 10:26:59 +01:00
symcat.h Update copyright years. 2021-01-04 10:26:59 +01:00
timeval-utils.h Update copyright years. 2021-01-04 10:26:59 +01:00
unique-ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
vtv-change-permission.h Update copyright years. 2021-01-04 10:26:59 +01:00
xregex2.h Update copyright years. 2021-01-04 10:26:59 +01:00
xregex.h system.h [...]: Wrap C function declarations in extern "C". 2011-07-25 14:24:59 +00:00
xtensa-config.h Update copyright years. 2021-01-04 10:26:59 +01:00