libgomp: Fix nvptx plugin's GOMP_OFFLOAD_get_name.
commit56e092991a343484fe3d26b4506587d9bb99c1a9
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 16:37:48 +0000 (22 16:37 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Dec 2014 16:37:48 +0000 (22 16:37 +0000)
treeb799682cc3d7639dd6f905543e8f7d202a7d225b
parent6bb8cfa151e40ab1e991112d2bbe2719f0a2c46a
libgomp: Fix nvptx plugin's GOMP_OFFLOAD_get_name.

This is a function in the "generic" interface, so it should return the
"generic" name instead of the OpenACC one.

libgomp/
* plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_name): Return "nvptx".
* oacc-init.c (resolve_device): Update for that using...
(get_openacc_name): ... this new function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-4_0-branch@219018 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog.gomp
libgomp/oacc-init.c
libgomp/plugin/plugin-nvptx.c