summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2017-02-02 14:35:30 +0000
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>2017-02-02 14:35:30 +0000
commitfbfa5aaf7537a8d4a86873dd993fdd20aaed0298 (patch)
tree4d9c74f390b472d288adc4f5042cc6b777cc5d54 /libgomp
parent65caa53b3e767f1df02673f25f281926d11219a7 (diff)
downloadgcc-fbfa5aaf7537a8d4a86873dd993fdd20aaed0298.tar.gz
libgomp, nvptx plugin: Make "nvptx_exec" static
libgomp/ * plugin/plugin-nvptx.c (nvptx_exec): Make it static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245127 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog2
-rw-r--r--libgomp/plugin/plugin-nvptx.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 5f05cdb9b46..56dc5bbde87 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,5 +1,7 @@
2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
+ * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
+
* libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
GOMP_OFFLOAD_openacc_exec. Adjust all users.
(GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index 0284c7ff604..36d447cfed2 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1041,7 +1041,7 @@ event_add (enum ptx_event_type type, CUevent *e, void *h, int val)
pthread_mutex_unlock (&ptx_event_lock);
}
-void
+static void
nvptx_exec (void (*fn), size_t mapnum, void **hostaddrs, void **devaddrs,
int async, unsigned *dims, void *targ_mem_desc)
{