target.c (gomp_offload_image_to_device): Rename to ...
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 21 Jul 2015 13:30:06 +0000 (13:30 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 21 Jul 2015 13:30:06 +0000 (13:30 +0000)
commit22be23495a1f0cd1ae6a1aca32c39edb9f7a9c51
tree5346a618826d07eaa35796ae94daf5f43300dc8a
parentc5189d8e679126d652b23761fb95bc5042c19ea9
target.c (gomp_offload_image_to_device): Rename to ...

libgomp/
* target.c (gomp_offload_image_to_device): Rename to ...
(gomp_load_image_to_device): ... here.
(GOMP_offload_register): Adjust call.
(gomp_init_device): Likewise.
(gomp_unload_image_from_device): New.  Broken out of ...
(GOMP_offload_unregister): ... here.  Call it.
(gomp_unload_device): New.
* libgomp.h (gomp_unload_device): Declare.
* oacc-init.c (acc_shutdown_1): Unload from device before deleting
mem maps.

gcc/
* config/nvptx/mkoffload.c (process): Add static destructor call.

From-SVN: r226039
gcc/ChangeLog
gcc/config/nvptx/mkoffload.c
libgomp/ChangeLog
libgomp/libgomp.h
libgomp/oacc-init.c
libgomp/target.c