nvptx offloading linking
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 2 Oct 2015 19:43:41 +0000 (21:43 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 2 Oct 2015 19:43:41 +0000 (21:43 +0200)
commit113020dc598b57e0f2a73bf1516e5c83668aca21
treeaa9ed3c30c222e71bcb81aabff26db2e11ffd802
parent7fcdbdd21d6adc14421bc8de439bf91b58eae6d1
nvptx offloading linking

gcc/
* config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
(Token, Stmt): Remove structs.
(decls, vars, fns): Remove variables.
(alloc_comment, append_stmt, is_keyword): Remove macros.
(tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
(write_stmt, write_stmts, parse_insn, parse_list_nosemi)
(parse_init, parse_file): Remove functions.
(read_file): Accept a pointer to a length and store into it.
(process): Don't try to parse the input file, just write it out as
a string, but looking for maps.  Also write out the length.
(main): Don't use "-S" to compile PTX code.

libgomp/
* oacc-ptx.h: Remove file, moving its content into...
* config/nvptx/fortran.c: ... here...
* config/nvptx/oacc-init.c: ..., here...
* config/nvptx/oacc-parallel.c: ..., and here.
* config/nvptx/openacc.f90: New file.
* plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
(link_ptx): Don't link in predefined bits of PTX code.

Co-Authored-By: Bernd Schmidt <bernds@codesourcery.com>
From-SVN: r228418
gcc/ChangeLog
gcc/config/nvptx/mkoffload.c
libgomp/ChangeLog
libgomp/config/nvptx/fortran.c
libgomp/config/nvptx/oacc-init.c
libgomp/config/nvptx/oacc-parallel.c
libgomp/config/nvptx/openacc.f90 [new file with mode: 0644]
libgomp/oacc-init.c
libgomp/oacc-ptx.h [deleted file]
libgomp/plugin/plugin-nvptx.c