nvptx offloading linking
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 19:43:41 +0000 (19:43 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 2015 19:43:41 +0000 (19:43 +0000)
commit689db5ed20ee0ae1ca351fd6066c72c60aa43805
treeaa9ed3c30c222e71bcb81aabff26db2e11ffd802
parentde74aa1822da6a22e7dc283bc9eee095971c5b3f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228418 138bc75d-0d04-0410-961f-82ee72b054a4
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